From 377ba2f727cbe03a820b1c6d56130cc2e0dc33aa Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Thu, 16 Nov 2023 05:19:02 +0200 Subject: [PATCH] N806 Signed-off-by: Alfred Wingate --- src/euscan/scan.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/euscan/scan.py b/src/euscan/scan.py index d1f4689..781b658 100644 --- a/src/euscan/scan.py +++ b/src/euscan/scan.py @@ -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):