1 |
commit: 6aaf76e545af2f9489295c214673897994a4ce31 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 1 18:23:15 2022 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 1 18:23:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6aaf76e5 |
7 |
|
8 |
vcs-snapshot.eclass: canonical variable ordering |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/24013 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
eclass/vcs-snapshot.eclass | 7 ++++++- |
14 |
1 file changed, 6 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/eclass/vcs-snapshot.eclass b/eclass/vcs-snapshot.eclass |
17 |
index 0e86cb4ad51f..64bc1da040f4 100644 |
18 |
--- a/eclass/vcs-snapshot.eclass |
19 |
+++ b/eclass/vcs-snapshot.eclass |
20 |
@@ -47,7 +47,8 @@ case ${EAPI} in |
21 |
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
22 |
esac |
23 |
|
24 |
-EXPORT_FUNCTIONS src_unpack |
25 |
+if [[ ! ${_VCS_SNAPSHOT_ECLASS} ]]; then |
26 |
+_VCS_SNAPSHOT_ECLASS=1 |
27 |
|
28 |
# @FUNCTION: vcs-snapshot_src_unpack |
29 |
# @DESCRIPTION: |
30 |
@@ -110,3 +111,7 @@ vcs-snapshot_src_unpack() { |
31 |
[[ ${w} == eerror ]] && die "${FUNCNAME}: Unnecessary usage detected" |
32 |
fi |
33 |
} |
34 |
+ |
35 |
+fi |
36 |
+ |
37 |
+EXPORT_FUNCTIONS src_unpack |