aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhanth Rathod <xsiddhanthrathod@gmail.com>2023-10-05 19:04:59 +0530
committerSam James <sam@gentoo.org>2023-10-08 04:27:53 +0100
commita12d24f99d03c3c4975d84d63083449cd8487ef9 (patch)
tree75eab48912de29e5d004e9b359c07375f088c480
parenteclean: pkg: fix pkgindex handling (diff)
downloadgentoolkit-a12d24f99d03c3c4975d84d63083449cd8487ef9.tar.gz
gentoolkit-a12d24f99d03c3c4975d84d63083449cd8487ef9.tar.bz2
gentoolkit-a12d24f99d03c3c4975d84d63083449cd8487ef9.zip
eclean: pkg: suppress invalid binary error
[sam: Note that this needs https://github.com/gentoo/portage/pull/1123 on the Portage side.] Bug: https://bugs.gentoo.org/900224 Signed-off-by: Siddhanth Rathod <xsiddhanthrathod@gmail.com> Closes: https://github.com/gentoo/gentoolkit/pull/35 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--pym/gentoolkit/eclean/search.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/gentoolkit/eclean/search.py b/pym/gentoolkit/eclean/search.py
index ce8fe37..77f16af 100644
--- a/pym/gentoolkit/eclean/search.py
+++ b/pym/gentoolkit/eclean/search.py
@@ -572,8 +572,11 @@ def findPackages(
# inaccessible
settings = var_dbapi.settings
bin_dbapi = portage.binarytree(pkgdir=pkgdir, settings=settings).dbapi
+ populate_kwargs = {}
+ if "invalid_errors" in signature(bin_dbapi.bintree.populate).parameters:
+ populate_kwargs["invalid_errors"] = False
if "force_reindex" in signature(bin_dbapi.bintree.populate).parameters:
- bin_dbapi.bintree.populate(force_reindex=True)
+ bin_dbapi.bintree.populate(force_reindex=True, **populate_kwargs)
for cpv in bin_dbapi.cpv_all():
cp = portage.cpv_getkey(cpv)