Skip to content

Commit 1eabbd3

Browse files
dol-senthesamesam
authored andcommitted
eclean: fix eb655cf for no deprecated pkgs
Previous commit, while fixes output for deprecated pkgs I added and {distdir: {}} entry to the deprecated return dict. Place the dictionary update behind a check that there is something to update it with. Signed-off-by: Brian Dolbec <[email protected]> Signed-off-by: Sam James <[email protected]>
1 parent 76801ea commit 1eabbd3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pym/gentoolkit/eclean/search.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ def findDistfiles(
132132
if (not destructive) or fetch_restricted:
133133
self.output("...non-destructive type search")
134134
pkgs, _deprecated = self._non_destructive(destructive, fetch_restricted)
135-
# simulate the same structure as invalid binpkgs for list_pkgs()
136-
deprecated.update({_distdir: _deprecated})
135+
if _deprecated:
136+
# use the same structure as invalid binpkgs for list_pkgs()
137+
deprecated.update({_distdir: _deprecated})
137138
installed_included = True
138139
if destructive:
139140
self.output(
@@ -142,8 +143,9 @@ def findDistfiles(
142143
pkgs, _deprecated = self._destructive(
143144
package_names, exclude, pkgs, installed_included
144145
)
145-
# simulate the same structure as invalid binpkgs for list_pkgs()
146-
deprecated.update({_distdir: _deprecated)
146+
if _deprecated:
147+
# use the same structure as invalid binpkgs for list_pkgs()
148+
deprecated.update({_distdir: _deprecated})
147149
# gather the files to be cleaned
148150
self.output("...checking limits for %d ebuild sources" % len(pkgs))
149151

0 commit comments

Comments
 (0)