acct-{group,user}.eclass: Add @SUPPORTED_EAPIS.
authorUlrich Müller <ulm@gentoo.org>
Mon, 19 Aug 2019 21:12:42 +0000 (23:12 +0200)
committerUlrich Müller <ulm@gentoo.org>
Tue, 20 Aug 2019 06:46:39 +0000 (08:46 +0200)
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
eclass/acct-group.eclass
eclass/acct-user.eclass

index d5ccd209c9e3d41224ac1b3c6baf6cdd7ef85d0d..99919789b2c76df7184fd0765db67927cf73f80e 100644 (file)
@@ -7,6 +7,7 @@
 # @AUTHOR:
 # Michael Orlitzky <mjo@gentoo.org>
 # Michał Górny <mgorny@gentoo.org>
+# @SUPPORTED_EAPIS: 7
 # @BLURB: Eclass used to create and maintain a single group entry
 # @DESCRIPTION:
 # This eclass represents and creates a single group entry.  The name
@@ -35,7 +36,7 @@ _ACCT_GROUP_ECLASS=1
 
 case ${EAPI:-0} in
        7) ;;
-       *) die "EAPI=${EAPI} not supported";;
+       *) die "EAPI=${EAPI:-0} not supported";;
 esac
 
 inherit user
index fa4f9daef8f798b69ba445e25a60ef0aa1f64e92..c1396141454b26b68cd8e9ecc42c08000fc434c8 100644 (file)
@@ -7,6 +7,7 @@
 # @AUTHOR:
 # Michael Orlitzky <mjo@gentoo.org>
 # Michał Górny <mgorny@gentoo.org>
+# @SUPPORTED_EAPIS: 7
 # @BLURB: Eclass used to create and maintain a single user entry
 # @DESCRIPTION:
 # This eclass represents and creates a single user entry.  The name
@@ -43,7 +44,7 @@ _ACCT_USER_ECLASS=1
 
 case ${EAPI:-0} in
        7) ;;
-       *) die "EAPI=${EAPI} not supported";;
+       *) die "EAPI=${EAPI:-0} not supported";;
 esac
 
 inherit user
@@ -107,7 +108,7 @@ readonly ACCT_USER_NAME
 # @REQUIRED
 # @DESCRIPTION:
 # List of groups the user should belong to.  This must be a bash
-# array. 
+# array.
 
 
 # << Boilerplate ebuild variables >>