diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-09-24 15:23:29 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-24 15:23:29 -0700 |
commit | 77b63ed6f9fc2f1c30dfb100ca12aef02f5f0240 (patch) | |
tree | ce00c347e9f8e92d037ca129162b0248b89d40a2 | |
parent | c495b938fd10295928f455db6391bcdac2031acc (diff) | |
download | portage-77b63ed6f9fc2f1c30dfb100ca12aef02f5f0240.tar.gz portage-77b63ed6f9fc2f1c30dfb100ca12aef02f5f0240.tar.bz2 portage-77b63ed6f9fc2f1c30dfb100ca12aef02f5f0240.zip |
portdbapi.xmatch: fix unknown repo / return empty
We want to return an empty list for the match-* methods, otherwise an
empty string.
-rw-r--r-- | pym/portage/dbapi/porttree.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 9a8f50826..d710d6404 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -849,7 +849,10 @@ class portdbapi(dbapi): if mydep.repo is not None: mytree = self.treemap.get(mydep.repo) if mytree is None: - myval = [] + if level.startswith("match-"): + myval = [] + else: + myval = "" if myval is not None: # Unknown repo, empty result. |