diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-07-01 06:27:27 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-07-01 06:27:27 -0700 |
commit | ebb17308212806e44468f520268b3d1441133065 (patch) | |
tree | ec64d716c067f927a328892426bf8f39cfb9a47c | |
parent | b243747fff40fb061041db58c149bef4b89e6771 (diff) | |
download | portage-ebb17308212806e44468f520268b3d1441133065.tar.gz portage-ebb17308212806e44468f520268b3d1441133065.tar.bz2 portage-ebb17308212806e44468f520268b3d1441133065.zip |
portageq get_repo_path: output empty if unknownv2.2.0_alpha43
It used to output "None" for unknown repos, which was not intended.
-rwxr-xr-x | bin/portageq | 5 |
1 files changed, 4 insertions, 1 deletions
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): """<root> |