summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/eshowkw.py2
-rwxr-xr-xscripts/sys-unneeded-distfiles.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/eshowkw.py b/scripts/eshowkw.py
index 29938c2..00f5632 100755
--- a/scripts/eshowkw.py
+++ b/scripts/eshowkw.py
@@ -171,4 +171,4 @@ for i in portage.settings['ACCEPT_KEYWORDS'].split():
if i[0] == '~':
myArch = i[1:]
-showMe(myArch, portage.portdbapi(portage.settings['PORTDIR']), pkg)
+showMe(myArch, portage.portdbapi(mysettings=portage.settings), pkg)
diff --git a/scripts/sys-unneeded-distfiles.py b/scripts/sys-unneeded-distfiles.py
index 8deb1ca..cd5ca62 100755
--- a/scripts/sys-unneeded-distfiles.py
+++ b/scripts/sys-unneeded-distfiles.py
@@ -87,7 +87,7 @@ echo(output.green('Using DB directories: '))
for i in DBPATHS:
echo(output.blue(' * ') + i)
-db = portage.portdbapi(portdir)
+db = portage.portdbapi(mysettings=portage.settings)
if not silent:
print output.green('Gathering files... '),