aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-01-19 06:14:43 +0000
committerSam James <sam@gentoo.org>2024-01-19 06:15:12 +0000
commitc584d83705a2ca08961e4f0b541442fdf9a75947 (patch)
treeea5a530cf99ad222ad0a766d2b49ca95ebb701e3
parentRevert "ci: add py3.13" (diff)
downloadgentoolkit-c584d83705a2ca08961e4f0b541442fdf9a75947.tar.gz
gentoolkit-c584d83705a2ca08961e4f0b541442fdf9a75947.tar.bz2
gentoolkit-c584d83705a2ca08961e4f0b541442fdf9a75947.zip
eclean: fix eclean-dist with no git3-src dir
Bug: https://bugs.gentoo.org/922455 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--pym/gentoolkit/eclean/search.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/gentoolkit/eclean/search.py b/pym/gentoolkit/eclean/search.py
index f03c521..3610920 100644
--- a/pym/gentoolkit/eclean/search.py
+++ b/pym/gentoolkit/eclean/search.py
@@ -339,6 +339,9 @@ class DistfilesSearch:
"""Checks $DISTDIR/vcs-src for checkouts which are not in the vardb"""
# For now we only check git
vcs_src = os.path.join(distdir, "git3-src")
+ if not os.path.exists(vcs_src):
+ return {}
+
expected_dirs = set()
for i in set(self.vardb.cpv_all()):
if "live" in self.vardb.aux_get(i, ["PROPERTIES"]):