From: Zac Medico Date: Sat, 24 Sep 2011 22:23:29 +0000 (-0700) Subject: portdbapi.xmatch: fix unknown repo / return empty X-Git-Tag: v2.2.0_alpha60~15 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=77b63ed6f9fc2f1c30dfb100ca12aef02f5f0240;p=portage.git portdbapi.xmatch: fix unknown repo / return empty We want to return an empty list for the match-* methods, otherwise an empty string. --- 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.