summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2019-08-19 23:12:42 +0200
committerUlrich Müller <ulm@gentoo.org>2019-08-20 08:46:39 +0200
commit9fab152de8b6b6b71b2a7adb2c36646b740e6e3e (patch)
treeab341e682593bc63c7c101de43e76c1217f386e2
parentgames-roguelike/angband: bump version to 4.2.0 (diff)
downloadgentoo-9fab152de8b6b6b71b2a7adb2c36646b740e6e3e.tar.gz
gentoo-9fab152de8b6b6b71b2a7adb2c36646b740e6e3e.tar.bz2
gentoo-9fab152de8b6b6b71b2a7adb2c36646b740e6e3e.zip
acct-{group,user}.eclass: Add @SUPPORTED_EAPIS.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--eclass/acct-group.eclass3
-rw-r--r--eclass/acct-user.eclass5
2 files changed, 5 insertions, 3 deletions
diff --git a/eclass/acct-group.eclass b/eclass/acct-group.eclass
index d5ccd209c9e3..99919789b2c7 100644
--- a/eclass/acct-group.eclass
+++ b/eclass/acct-group.eclass
@@ -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
diff --git a/eclass/acct-user.eclass b/eclass/acct-user.eclass
index fa4f9daef8f7..c1396141454b 100644
--- a/eclass/acct-user.eclass
+++ b/eclass/acct-user.eclass
@@ -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 >>