Skip to content

Commit

Permalink
eclean: dist: fix operating on an empty directory
Browse files Browse the repository at this point in the history
Zac pointed out that not all return paths had been updated.

Bug: https://bugs.gentoo.org/928138
Fixes: 87912b4
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed May 3, 2024
1 parent f49f246 commit 7405fdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pym/gentoolkit/eclean/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ def findDistfiles(
pkgs = {}
saved = {}
deprecated = {}
vcs = {}
installed_included = False
# Check if DISTDIR is empty, return early
if not os.listdir(_distdir):
return clean_me, saved, deprecated
return clean_me, saved, deprecated, vcs

# create a big CPV->SRC_URI dict of packages
# whose distfiles should be kept
Expand Down

0 comments on commit 7405fdc

Please sign in to comment.