summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRepository mirror & CI <repomirrorci@gentoo.org>2023-11-10 10:49:48 +0000
committerRepository mirror & CI <repomirrorci@gentoo.org>2023-11-10 10:49:48 +0000
commit0f3d1151fe668e18d4b5902f746044af705c27da (patch)
tree355903618ce2be9699403baa8a0b411e1faa82f0
parent2023-11-10 10:16:54 UTC (diff)
parentgit-r3.eclass: Inroducing EVCS_STORE_DIRS var (diff)
downloadgentoo-0f3d1151fe668e18d4b5902f746044af705c27da.tar.gz
gentoo-0f3d1151fe668e18d4b5902f746044af705c27da.tar.bz2
gentoo-0f3d1151fe668e18d4b5902f746044af705c27da.zip
Merge updates from master
-rw-r--r--eclass/git-r3.eclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass
index 83c5ab590c39..a08845364296 100644
--- a/eclass/git-r3.eclass
+++ b/eclass/git-r3.eclass
@@ -120,6 +120,14 @@ fi
# usage.
: "${EGIT_LFS_CLONE_TYPE:=shallow}"
+# @ECLASS_VARIABLE: EVCS_STORE_DIRS
+# @OUTPUT_VARIABLE
+# @DESCRIPTION:
+# Record of names of all the repositories directories being cloned in the git3_src.
+# This is useful in the case of ebuild that fetch multiple repos and
+# it would be used by eclean to clean them up.
+EVCS_STORE_DIRS=()
+
# @ECLASS_VARIABLE: EGIT3_STORE_DIR
# @USER_VARIABLE
# @DEFAULT_UNSET
@@ -360,6 +368,8 @@ _git-r3_set_gitdir() {
GIT_DIR=${EGIT3_STORE_DIR}/${repo_name}
+ EVCS_STORE_DIRS+=( "${GIT_DIR}" )
+
if [[ ! -d ${EGIT3_STORE_DIR} && ! ${EVCS_OFFLINE} ]]; then
(
addwrite /