aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/equery/equery2
-rw-r--r--src/gentoolkit/helpers.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/equery/equery b/src/equery/equery
index 63eb8b3..d5b5945 100755
--- a/src/equery/equery
+++ b/src/equery/equery
@@ -375,7 +375,6 @@ class CmdListBelongs(Command):
query[i] = query[i].rstrip('/')
q = map(lambda x: ((len(x) and x[0] == "/") and "^" or "/")
+ re.escape(x) + "$", query)
- print q
try:
q = "|".join(q)
rx = re.compile(q)
@@ -738,6 +737,7 @@ class CmdDisplayDepGraph(Command):
cpv = x[2]
pkg = gentoolkit.find_best_match(x[0] + cpv)
if not pkg:
+ print pfx + x[0] + cpv + " (unable to resolve to a package / package masked or removed)"
continue
if pkg.get_cpv() in pkgtbl:
continue
diff --git a/src/gentoolkit/helpers.py b/src/gentoolkit/helpers.py
index bf2b1b1..1823f2c 100644
--- a/src/gentoolkit/helpers.py
+++ b/src/gentoolkit/helpers.py
@@ -64,9 +64,9 @@ def find_installed_packages(search_key, masked=False):
return [Package(x) for x in t]
def find_best_match(search_key):
- """Returns a Package object for the best available installed candidate that
+ """Returns a Package object for the best available candidate that
matched the search key."""
- t = portage.db["/"]["vartree"].dep_bestmatch(search_key)
+ t = portage.db["/"]["porttree"].dep_bestmatch(search_key)
if t:
return Package(t)
return None