Gentoo Archives: gentoo-commits

From: Krzysztof Pawlik <nelchael@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/nelchael:master commit in: scripts/
Date: Wed, 27 Jul 2011 20:03:16
Message-Id: 968dfe849434155208c4d8a3c2f64f5fb3f1328c.nelchael@gentoo
1 commit: 968dfe849434155208c4d8a3c2f64f5fb3f1328c
2 Author: Krzysztof Pawlik <none <AT> none>
3 AuthorDate: Tue Jun 28 14:10:25 2011 +0000
4 Commit: Krzysztof Pawlik <nelchael <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 28 14:10:25 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/nelchael.git;a=commit;h=968dfe84
7
8 Fixes for new portage API.
9
10 ---
11 scripts/eshowkw.py | 2 +-
12 scripts/sys-unneeded-distfiles.py | 2 +-
13 2 files changed, 2 insertions(+), 2 deletions(-)
14
15 diff --git a/scripts/eshowkw.py b/scripts/eshowkw.py
16 index 29938c2..00f5632 100755
17 --- a/scripts/eshowkw.py
18 +++ b/scripts/eshowkw.py
19 @@ -171,4 +171,4 @@ for i in portage.settings['ACCEPT_KEYWORDS'].split():
20 if i[0] == '~':
21 myArch = i[1:]
22
23 -showMe(myArch, portage.portdbapi(portage.settings['PORTDIR']), pkg)
24 +showMe(myArch, portage.portdbapi(mysettings=portage.settings), pkg)
25
26 diff --git a/scripts/sys-unneeded-distfiles.py b/scripts/sys-unneeded-distfiles.py
27 index 8deb1ca..cd5ca62 100755
28 --- a/scripts/sys-unneeded-distfiles.py
29 +++ b/scripts/sys-unneeded-distfiles.py
30 @@ -87,7 +87,7 @@ echo(output.green('Using DB directories: '))
31 for i in DBPATHS:
32 echo(output.blue(' * ') + i)
33
34 -db = portage.portdbapi(portdir)
35 +db = portage.portdbapi(mysettings=portage.settings)
36
37 if not silent:
38 print output.green('Gathering files... '),