From ebb17308212806e44468f520268b3d1441133065 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 1 Jul 2011 06:27:27 -0700 Subject: portageq get_repo_path: output empty if unknown It used to output "None" for unknown repos, which was not intended. --- bin/portageq | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/portageq b/bin/portageq index a13ca998c..f0ecbfcd1 100755 --- a/bin/portageq +++ b/bin/portageq @@ -627,7 +627,10 @@ def get_repo_path(argv): print("ERROR: insufficient parameters!") sys.exit(2) for arg in argv[1:]: - print(portage.db[argv[0]]["porttree"].dbapi.getRepositoryPath(arg)) + path = portage.db[argv[0]]["porttree"].dbapi.getRepositoryPath(arg) + if path is None: + path = "" + print(path) def list_preserved_libs(argv): """ -- cgit v1.2.3-1-g7c22