Fix 'undefined name' errors found by pyflakes. (trunk r9842)
authorZac Medico <zmedico@gentoo.org>
Fri, 11 Apr 2008 21:20:14 +0000 (21:20 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 11 Apr 2008 21:20:14 +0000 (21:20 -0000)
svn path=/main/branches/2.1.2/; revision=9843

pym/portage.py

index 2a427dfd4e601208b2c6b671473296adcfd66e8a..5f829ac0d1246a4570a7c74f18f8af942441de0d 100644 (file)
@@ -1294,7 +1294,7 @@ class config:
                                                parents = grabfile(parentsFile)
                                                if not parents:
                                                        raise portage_exception.ParseError(
-                                                               "Empty parent file: '%s'" % parents_file)
+                                                               "Empty parent file: '%s'" % parentsFile)
                                                for parentPath in parents:
                                                        parentPath = normalize_path(os.path.join(
                                                                currentPath, parentPath))
@@ -9830,8 +9830,8 @@ class FetchlistDict(UserDict.DictMixin):
                """Returns the complete fetch list for a given package."""
                return self.portdb.getfetchlist(pkg_key, mysettings=self.settings,
                        all=True, mytree=self.mytree)[1]
-       def __contains__(self):
-               return pkg_key in self.keys()
+       def __contains__(self, cpv):
+               return cpv in self.keys()
        def has_key(self, pkg_key):
                """Returns true if the given package exists within pkgdir."""
                return pkg_key in self