+2007-03-31: Paul Varner <fuzzyray@gentoo.org>
+ * equery: Fix traceback in equery which (Bug #134053)
+
2007-03-29: Paul Varner <fuzzyray@gentoo.org>
* gentoolkit: Change package.get_???_deps() methods to try the portage
tree first, since emerge always uses the portage tree for dependencies.
matches = gentoolkit.sort_package_list(matches)
if matches:
- print_info(0, os.path.normpath(matches[-1].get_ebuild_path()))
+ pkg = matches[-1]
+ ebuild_path = pkg.get_ebuild_path()
+ if ebuild_path:
+ print_info(0, os.path.normpath(ebuild_path))
+ else:
+ print_warn("There are no ebuilds to satisfy %s" % pkg.get_name())
else:
print_error("No masked or unmasked packages found for " + pp.pkgquery(query))