diff --git a/pym/gentoolkit/eclean/search.py b/pym/gentoolkit/eclean/search.py index f03c521b..36109208 100644 --- a/pym/gentoolkit/eclean/search.py +++ b/pym/gentoolkit/eclean/search.py @@ -339,6 +339,9 @@ def vcs_check(self, distdir): """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"]):