+2007-03-08 Paul Varner <fuzzyray@gentoo.org>
+ * equery: Improved handling of KeyError in equery depends command
+ (Bug #169929)
+
2007-03-07 Paul Varner <fuzzyray@gentoo.org>
* revdep-rebuild: Change ordering algorithm to use --deep instead of
--emptytree on the advice of zmedico
# Find all packages matching the dependency
depstr = dependency[0]+dependency[2]
if not depstr in self.deppkgs:
- depcpvs = map((lambda x: x.get_cpv()), gentoolkit.find_packages(depstr))
- self.deppkgs[depstr] = depcpvs
+ try:
+ depcpvs = map((lambda x: x.get_cpv()), gentoolkit.find_packages(depstr))
+ self.deppkgs[depstr] = depcpvs
+ except KeyError, e:
+ print_warn("")
+ print_warn("Package: " + depstr + " contains invalid dependency specification.")
+ print_warn("Portage error: " + str(e))
+ print_warn("")
+ continue
else:
depcpvs = self.deppkgs[depstr]
for x in depcpvs:
print_error("")
print_error("Note: The symbols > and < are used for redirection in the shell")
print_error("and must be quoted if either one is used.")
-
+
else:
print_error("Internal portage error, terminating")
if len(e[0]):