Skip to content

Commit

Permalink
Eclean-invalids: Suppress invalid binary error
Browse files Browse the repository at this point in the history
Signed-off-by: Siddhanth Rathod <xsiddhanthrathod@gmail.com>
  • Loading branch information
hyprsyd committed Oct 7, 2023
1 parent f208ff3 commit f5843fc
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 f5843fc

Please sign in to comment.