commit:     9fab152de8b6b6b71b2a7adb2c36646b740e6e3e
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 19 21:12:42 2019 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Aug 20 06:46:39 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fab152d

acct-{group,user}.eclass: Add @SUPPORTED_EAPIS.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eclass/acct-group.eclass | 3 ++-
 eclass/acct-user.eclass  | 5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/eclass/acct-group.eclass b/eclass/acct-group.eclass
index d5ccd209c9e..99919789b2c 100644
--- a/eclass/acct-group.eclass
+++ b/eclass/acct-group.eclass
@@ -7,6 +7,7 @@
 # @AUTHOR:
 # Michael Orlitzky <[email protected]>
 # Michał Górny <[email protected]>
+# @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

diff --git a/eclass/acct-user.eclass b/eclass/acct-user.eclass
index fa4f9daef8f..c1396141454 100644
--- a/eclass/acct-user.eclass
+++ b/eclass/acct-user.eclass
@@ -7,6 +7,7 @@
 # @AUTHOR:
 # Michael Orlitzky <[email protected]>
 # Michał Górny <[email protected]>
+# @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 >>

Reply via email to