svn path=/branches/gentoolkit-0.2.4/; revision=514
+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
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)
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
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