From a12d24f99d03c3c4975d84d63083449cd8487ef9 Mon Sep 17 00:00:00 2001 From: Siddhanth Rathod Date: Thu, 5 Oct 2023 19:04:59 +0530 Subject: 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 Closes: https://github.com/gentoo/gentoolkit/pull/35 Signed-off-by: Sam James --- pym/gentoolkit/eclean/search.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3