diff options
author | fuzzyray <fuzzyray@gentoo.org> | 2008-09-03 20:31:31 +0000 |
---|---|---|
committer | fuzzyray <fuzzyray@gentoo.org> | 2008-09-03 20:31:31 +0000 |
commit | 9abc4714ac9e981a242460fa003c405ee0dc58fc (patch) | |
tree | 2b0fe28ccb6bb90562565edd9f2566a82056836e /src | |
parent | Create the gentoolkit-0.2.4 branch to coincide with the release of gentoolkit... (diff) | |
download | gentoolkit-9abc4714ac9e981a242460fa003c405ee0dc58fc.tar.gz gentoolkit-9abc4714ac9e981a242460fa003c405ee0dc58fc.tar.bz2 gentoolkit-9abc4714ac9e981a242460fa003c405ee0dc58fc.zip |
Merge changes from trunk to fix issues in 0.2.4
svn path=/branches/gentoolkit-0.2.4/; revision=514
Diffstat (limited to 'src')
-rwxr-xr-x | src/equery/equery | 2 | ||||
-rw-r--r-- | src/gentoolkit/helpers.py | 4 |
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 |