commit:     6aaf76e545af2f9489295c214673897994a4ce31
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  1 18:23:15 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Feb  1 18:23:15 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6aaf76e5

vcs-snapshot.eclass: canonical variable ordering

Closes: https://github.com/gentoo/gentoo/pull/24013
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 eclass/vcs-snapshot.eclass | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/eclass/vcs-snapshot.eclass b/eclass/vcs-snapshot.eclass
index 0e86cb4ad51f..64bc1da040f4 100644
--- a/eclass/vcs-snapshot.eclass
+++ b/eclass/vcs-snapshot.eclass
@@ -47,7 +47,8 @@ case ${EAPI} in
        *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
-EXPORT_FUNCTIONS src_unpack
+if [[ ! ${_VCS_SNAPSHOT_ECLASS} ]]; then
+_VCS_SNAPSHOT_ECLASS=1
 
 # @FUNCTION: vcs-snapshot_src_unpack
 # @DESCRIPTION:
@@ -110,3 +111,7 @@ vcs-snapshot_src_unpack() {
                [[ ${w} == eerror ]] && die "${FUNCNAME}: Unnecessary usage 
detected"
        fi
 }
+
+fi
+
+EXPORT_FUNCTIONS src_unpack

Reply via email to