From: Zac Medico Date: Fri, 11 Apr 2008 21:20:14 +0000 (-0000) Subject: Fix 'undefined name' errors found by pyflakes. (trunk r9842) X-Git-Tag: v2.1.5~193 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=68df533704514a0c7539ee541786e29e15e7f1f9;p=portage.git Fix 'undefined name' errors found by pyflakes. (trunk r9842) svn path=/main/branches/2.1.2/; revision=9843 --- diff --git a/pym/portage.py b/pym/portage.py index 2a427dfd4..5f829ac0d 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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