summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <none@none>2011-06-28 16:10:25 +0200
committerKrzysztof Pawlik <none@none>2011-06-28 16:10:25 +0200
commit968dfe849434155208c4d8a3c2f64f5fb3f1328c (patch)
treeb882559873c71fd169c3f97b83081cf99e38fc41 /scripts
parentRemove old versions, update digest, small QA fixes. (diff)
downloadnelchael-968dfe849434155208c4d8a3c2f64f5fb3f1328c.tar.gz
nelchael-968dfe849434155208c4d8a3c2f64f5fb3f1328c.tar.bz2
nelchael-968dfe849434155208c4d8a3c2f64f5fb3f1328c.zip
Fixes for new portage API.
Diffstat (limited to 'scripts')
-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... '),