Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Recent decision to make FEATURES=pkgdir-index-trusted is now on …
Browse files Browse the repository at this point in the history
…by default breaks eclean-invalids feature

See_also: gentoo/portage@3bc7bfe

Signed-off-by: Siddhanth Rathod <[email protected]>
hyprsyd committed Sep 28, 2023

Verified

This commit was signed with the committer’s verified signature.
1 parent 5f1b823 commit 5273dbc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pym/gentoolkit/eclean/search.py
Original file line number Diff line number Diff line change
@@ -580,10 +580,14 @@ def findPackages(
dead_binpkgs: dict[str, list[str]] = {}
keep_binpkgs = {}

bin_dbapi = portage.binarytree(pkgdir=pkgdir, settings=var_dbapi.settings).dbapi
# FEATURES=pkgdir-index-trusted is now on by default which makes portages inavlids
# inaccessible
settings = var_dbapi.settings
settings.unlock()
settings.features.remove("pkgdir-index-trusted")
bin_dbapi = portage.binarytree(pkgdir=pkgdir, settings=settings).dbapi
for cpv in bin_dbapi.cpv_all():
cp = portage.cpv_getkey(cpv)

# Exclude per --exclude-file=...
if exclDictMatchCP(exclude, cp):
continue

0 comments on commit 5273dbc

Please sign in to comment.