Fix UnboundLocalError for y on line 177 in _expand_new_virtuals()
authorZac Medico <zmedico@gentoo.org>
Thu, 26 Aug 2010 14:34:12 +0000 (07:34 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 26 Aug 2010 14:34:12 +0000 (07:34 -0700)
pym/portage/dep/dep_check.py

index 4e0d319dbcfea635a984fbd5de0d8db8050c1ad3..1321037195252bc82e03644fec243ff2ff44b639 100644 (file)
@@ -174,7 +174,7 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/",
 
                        if not mycheck[0]:
                                raise ParseError(
-                                       "%s: %s '%s'" % (y[0], mycheck[1], depstring))
+                                       "%s: %s '%s'" % (pkg, mycheck[1], depstring))
 
                        # pull in the new-style virtual
                        mycheck[1].append(virt_atom)