summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/_emerge/__init__.py')
-rw-r--r--pym/_emerge/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index e50c48918..d5838de23 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -429,6 +429,7 @@ class search(object):
self._dbs.append(bindb)
self._dbs.append(vardb)
+ self._portdb = portdb
def _cp_all(self):
cp_all = set()
@@ -446,6 +447,12 @@ class search(object):
def _findname(self, *args, **kwargs):
for db in self._dbs:
+ if db is not self._portdb:
+ # We don't want findname to return anything
+ # unless it's an ebuild in a portage tree.
+ # Otherwise, it's already built and we don't
+ # care about it.
+ continue
func = getattr(db, "findname", None)
if func:
value = func(*args, **kwargs)