From 77b63ed6f9fc2f1c30dfb100ca12aef02f5f0240 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 24 Sep 2011 15:23:29 -0700 Subject: [PATCH] portdbapi.xmatch: fix unknown repo / return empty We want to return an empty list for the match-* methods, otherwise an empty string. --- pym/portage/dbapi/porttree.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. -- 2.26.2