Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: bin/
Date: Fri, 01 Jul 2011 13:27:46
Message-Id: ebb17308212806e44468f520268b3d1441133065.zmedico@gentoo
1 commit: ebb17308212806e44468f520268b3d1441133065
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 1 13:27:27 2011 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 1 13:27:27 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=ebb17308
7
8 portageq get_repo_path: output empty if unknown
9
10 It used to output "None" for unknown repos, which was not intended.
11
12 ---
13 bin/portageq | 5 ++++-
14 1 files changed, 4 insertions(+), 1 deletions(-)
15
16 diff --git a/bin/portageq b/bin/portageq
17 index a13ca99..f0ecbfc 100755
18 --- a/bin/portageq
19 +++ b/bin/portageq
20 @@ -627,7 +627,10 @@ def get_repo_path(argv):
21 print("ERROR: insufficient parameters!")
22 sys.exit(2)
23 for arg in argv[1:]:
24 - print(portage.db[argv[0]]["porttree"].dbapi.getRepositoryPath(arg))
25 + path = portage.db[argv[0]]["porttree"].dbapi.getRepositoryPath(arg)
26 + if path is None:
27 + path = ""
28 + print(path)
29
30 def list_preserved_libs(argv):
31 """<root>