Improved handling of KeyError in equery depends command (Bug #169929).
authorfuzzyray <fuzzyray@gentoo.org>
Fri, 9 Mar 2007 04:08:33 +0000 (04:08 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Fri, 9 Mar 2007 04:08:33 +0000 (04:08 -0000)
svn path=/; revision=353

trunk/src/equery/equery

index ff80da53b6f26df764c50b11120d5f79e9d939eb..0473de259552a920f95892e5f979a800510fed65 100755 (executable)
@@ -1134,7 +1134,7 @@ class CmdListDepends(Command):
                                                self.deppkgs[depstr] = depcpvs
                                        except KeyError, e:
                                                print_warn("")
-                                               print_warn("Package: " + depstr + " contains invalid dependency specification.")
+                                               print_warn("Package: " + pkgcpv + " contains invalid dependency specification.")
                                                print_warn("Portage error: " + str(e))
                                                print_warn("")
                                                continue