Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2023-11-16 05:19:02 +02:00
parent 9f7ba6c9cd
commit 377ba2f727
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

View File

@ -76,14 +76,14 @@ def reload_gentoolkit():
if not hasattr(gentoolkit.package, "PORTDB"):
return
PORTDB = portage.db[portage.root]["porttree"].dbapi
portdb = portage.db[portage.root]["porttree"].dbapi
if hasattr(gentoolkit.dbapi, "PORTDB"):
gentoolkit.dbapi.PORTDB = PORTDB
gentoolkit.dbapi.PORTDB = portdb
if hasattr(gentoolkit.package, "PORTDB"):
gentoolkit.package.PORTDB = PORTDB
gentoolkit.package.PORTDB = portdb
if hasattr(gentoolkit.query, "PORTDB"):
gentoolkit.query.PORTDB = PORTDB
gentoolkit.query.PORTDB = portdb
def scan_upstream(query, on_progress=None):