1 |
commit: 9fab152de8b6b6b71b2a7adb2c36646b740e6e3e |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 19 21:12:42 2019 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 20 06:46:39 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fab152d |
7 |
|
8 |
acct-{group,user}.eclass: Add @SUPPORTED_EAPIS. |
9 |
|
10 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
11 |
|
12 |
eclass/acct-group.eclass | 3 ++- |
13 |
eclass/acct-user.eclass | 5 +++-- |
14 |
2 files changed, 5 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/eclass/acct-group.eclass b/eclass/acct-group.eclass |
17 |
index d5ccd209c9e..99919789b2c 100644 |
18 |
--- a/eclass/acct-group.eclass |
19 |
+++ b/eclass/acct-group.eclass |
20 |
@@ -7,6 +7,7 @@ |
21 |
# @AUTHOR: |
22 |
# Michael Orlitzky <mjo@g.o> |
23 |
# Michał Górny <mgorny@g.o> |
24 |
+# @SUPPORTED_EAPIS: 7 |
25 |
# @BLURB: Eclass used to create and maintain a single group entry |
26 |
# @DESCRIPTION: |
27 |
# This eclass represents and creates a single group entry. The name |
28 |
@@ -35,7 +36,7 @@ _ACCT_GROUP_ECLASS=1 |
29 |
|
30 |
case ${EAPI:-0} in |
31 |
7) ;; |
32 |
- *) die "EAPI=${EAPI} not supported";; |
33 |
+ *) die "EAPI=${EAPI:-0} not supported";; |
34 |
esac |
35 |
|
36 |
inherit user |
37 |
|
38 |
diff --git a/eclass/acct-user.eclass b/eclass/acct-user.eclass |
39 |
index fa4f9daef8f..c1396141454 100644 |
40 |
--- a/eclass/acct-user.eclass |
41 |
+++ b/eclass/acct-user.eclass |
42 |
@@ -7,6 +7,7 @@ |
43 |
# @AUTHOR: |
44 |
# Michael Orlitzky <mjo@g.o> |
45 |
# Michał Górny <mgorny@g.o> |
46 |
+# @SUPPORTED_EAPIS: 7 |
47 |
# @BLURB: Eclass used to create and maintain a single user entry |
48 |
# @DESCRIPTION: |
49 |
# This eclass represents and creates a single user entry. The name |
50 |
@@ -43,7 +44,7 @@ _ACCT_USER_ECLASS=1 |
51 |
|
52 |
case ${EAPI:-0} in |
53 |
7) ;; |
54 |
- *) die "EAPI=${EAPI} not supported";; |
55 |
+ *) die "EAPI=${EAPI:-0} not supported";; |
56 |
esac |
57 |
|
58 |
inherit user |
59 |
@@ -107,7 +108,7 @@ readonly ACCT_USER_NAME |
60 |
# @REQUIRED |
61 |
# @DESCRIPTION: |
62 |
# List of groups the user should belong to. This must be a bash |
63 |
-# array. |
64 |
+# array. |
65 |
|
66 |
|
67 |
# << Boilerplate ebuild variables >> |