commit: a12d24f99d03c3c4975d84d63083449cd8487ef9 Author: Siddhanth Rathod <xsiddhanthrathod <AT> gmail <DOT> com> AuthorDate: Thu Oct 5 13:34:59 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Oct 8 03:27:53 2023 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=a12d24f9
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 <AT> gmail.com> Closes: https://github.com/gentoo/gentoolkit/pull/35 Signed-off-by: Sam James <sam <AT> gentoo.org> 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)
