Skip to content

Commit

Permalink
eclean: pkg: suppress invalid binary error
Browse files Browse the repository at this point in the history
[sam: Note that this needs gentoo/portage#1123 on
the Portage side.]

Bug: https://bugs.gentoo.org/900224
Signed-off-by: Siddhanth Rathod <[email protected]>
Closes: #35
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
hyprsyd authored and thesamesam committed Oct 8, 2023
1 parent c846c08 commit a12d24f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pym/gentoolkit/eclean/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a12d24f

Please sign in to comment.