Skip to content

Commit

Permalink
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]>
  • Loading branch information
hyprsyd committed Sep 28, 2023
1 parent 5146d35 commit 198721e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pym/gentoolkit/eclean/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@

import gentoolkit.pprinter as pp
from gentoolkit.eclean.exclude import (
exclDictMatchCP,
exclDictExpand,
exclDictExpandPkgname,
exclDictMatchCP,
exclMatchFilename,
)


# Misc. shortcuts to some portage stuff:
port_settings = portage.settings
pkgdir = port_settings["PKGDIR"]
Expand Down Expand Up @@ -568,7 +567,12 @@ 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)

Expand Down

0 comments on commit 198721e

Please sign in to comment.