From: Zac Medico Date: Fri, 1 Jul 2011 13:27:27 +0000 (-0700) Subject: portageq get_repo_path: output empty if unknown X-Git-Tag: v2.2.0_alpha43 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=ebb17308212806e44468f520268b3d1441133065;p=portage.git portageq get_repo_path: output empty if unknown It used to output "None" for unknown repos, which was not intended. --- 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): """