Merge changes from trunk to fix issues in 0.2.4
authorfuzzyray <fuzzyray@gentoo.org>
Wed, 3 Sep 2008 20:31:31 +0000 (20:31 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Wed, 3 Sep 2008 20:31:31 +0000 (20:31 -0000)
svn path=/branches/gentoolkit-0.2.4/; revision=514

ChangeLog
src/equery/equery
src/gentoolkit/helpers.py

index b100110abb56647ee4f0da89413e6629ede34337..aa1c6e8c2e01b4e4b954d0daaa06214e73e94318 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-03: Paul Varner <fuzzyray@gentoo.org>
+       * equery: Fix depgraph function to print out dependencies that don't
+       resolve to a package (Bug #236492)
+
 2008-08-26: Paul Varner <fuzzyray@gentoo.org>
        * glsa-check: Fix has_key() deprecation message. (Bug #232797)
        * revdep-rebuild: Update fix for Bug 232270 to utilize better patch
index 63eb8b3e769f0603081913d5b996dbf999532da5..d5b5945d2daa4294a4baa65c197be417d6bbe5ba 100755 (executable)
@@ -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
index bf2b1b1f1498b9e2f5aab9e52ed3393f9ffbbed3..1823f2cf1421156b17ed41b988819f533eacd966 100644 (file)
@@ -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