commit: 76801ea9b1155494106808b91c71e852fc3e848a
Author: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
AuthorDate: Thu Jan 22 04:40:35 2026 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jan 22 05:08:49 2026 +0000
URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=76801ea9
eclean: Fix broken deprecated output
Fixes commit: b903e392ccd40ea3fd8551e47d31c2c5704e94d9
which failed to update the deprecated dictionary to the structure
updated that output.list_pks() was expecting.
Update docstring parameter rename.
Signed-off-by: Brian Dolbec <brian.dolbec <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
pym/gentoolkit/eclean/output.py | 2 +-
pym/gentoolkit/eclean/search.py | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/pym/gentoolkit/eclean/output.py b/pym/gentoolkit/eclean/output.py
index f24086d..b512c8b 100644
--- a/pym/gentoolkit/eclean/output.py
+++ b/pym/gentoolkit/eclean/output.py
@@ -203,7 +203,7 @@ class OutputControl:
def list_pkgs(self, loc_pkgs):
"""outputs the packages to stdout
- @param pkgs: dict. of {location: {cat/pkg-ver: src_uri,} }
+ @param loc_pkgs: dict. of {location: {cat/pkg-ver: src_uri,} }
"""
indent = " " * 12
for pkgs in loc_pkgs.values():
diff --git a/pym/gentoolkit/eclean/search.py b/pym/gentoolkit/eclean/search.py
index 7b4be71..91f8b4b 100644
--- a/pym/gentoolkit/eclean/search.py
+++ b/pym/gentoolkit/eclean/search.py
@@ -132,7 +132,8 @@ class DistfilesSearch:
if (not destructive) or fetch_restricted:
self.output("...non-destructive type search")
pkgs, _deprecated = self._non_destructive(destructive,
fetch_restricted)
- deprecated.update(_deprecated)
+ # simulate the same structure as invalid binpkgs for list_pkgs()
+ deprecated.update({_distdir: _deprecated})
installed_included = True
if destructive:
self.output(
@@ -141,7 +142,8 @@ class DistfilesSearch:
pkgs, _deprecated = self._destructive(
package_names, exclude, pkgs, installed_included
)
- deprecated.update(_deprecated)
+ # simulate 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))