commit: 1eabbd3db19ad3fea47404b8a0320e124442f8a8
Author: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
AuthorDate: Thu Jan 22 07:17:21 2026 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jan 22 18:10:04 2026 +0000
URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=1eabbd3d
eclean: fix eb655cff9dce90 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 <brian.dolbec <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
pym/gentoolkit/eclean/search.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/pym/gentoolkit/eclean/search.py b/pym/gentoolkit/eclean/search.py
index 91f8b4b..1dc8722 100644
--- a/pym/gentoolkit/eclean/search.py
+++ b/pym/gentoolkit/eclean/search.py
@@ -132,8 +132,9 @@ class DistfilesSearch:
if (not destructive) or fetch_restricted:
self.output("...non-destructive type search")
pkgs, _deprecated = self._non_destructive(destructive,
fetch_restricted)
- # simulate the same structure as invalid binpkgs for list_pkgs()
- deprecated.update({_distdir: _deprecated})
+ if _deprecated:
+ # use the same structure as invalid binpkgs for list_pkgs()
+ deprecated.update({_distdir: _deprecated})
installed_included = True
if destructive:
self.output(
@@ -142,8 +143,9 @@ class DistfilesSearch:
pkgs, _deprecated = self._destructive(
package_names, exclude, pkgs, installed_included
)
- # simulate the same structure as invalid binpkgs for list_pkgs()
- deprecated.update({_distdir: _deprecated)
+ if _deprecated:
+ # use the same structure as invalid binpkgs for list_pkgs()
+ deprecated.update({_distdir: _deprecated})
# gather the files to be cleaned
self.output("...checking limits for %d ebuild sources" % len(pkgs))