From e70e41916899163fb28a1f5fa24c0ee2b17707f7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 20 Sep 2009 06:56:46 +0000 Subject: [PATCH] Bug #285637 - Fix NameError exception triggered by InvalidAtom in grabfile_package(). svn path=/main/trunk/; revision=14288 --- pym/portage/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/util.py b/pym/portage/util.py index 3232a4e51..04a799466 100644 --- a/pym/portage/util.py +++ b/pym/portage/util.py @@ -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): -- 2.26.2