Bug #285637 - Fix NameError exception triggered by InvalidAtom in
authorZac Medico <zmedico@gentoo.org>
Sun, 20 Sep 2009 06:56:46 +0000 (06:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 20 Sep 2009 06:56:46 +0000 (06:56 -0000)
grabfile_package().

svn path=/main/trunk/; revision=14288

pym/portage/util.py

index 3232a4e516d27b40fa3d77aa4a207f7aafedeeca..04a7994667ff0246ea6baa0154652e71aff5f2f1 100644 (file)
@@ -318,7 +318,7 @@ def grabfile_package(myfilename, compatlevel=0, recursive=0):
                try:
                        pkg = Atom(pkg)
                except InvalidAtom:
-                       writemsg(_("--- Invalid atom in %s: %s\n") % (myfilename, pkgs[x]),
+                       writemsg(_("--- Invalid atom in %s: %s\n") % (myfilename, pkg),
                                noiselevel=-1)
                else:
                        if pkg_orig == str(pkg):