diff options
author | Jason Stubbs <jstubbs@gentoo.org> | 2005-10-05 17:33:19 +0000 |
---|---|---|
committer | Jason Stubbs <jstubbs@gentoo.org> | 2005-10-05 17:33:19 +0000 |
commit | 161f55a9881d736a50da72d93a9d318450ae94e7 (patch) | |
tree | d27a5bb2268637186aadef403987be8d007048d9 | |
parent | 19441b9b44bcfb6b177a8eaac622730326bc0770 (diff) | |
download | portage-161f55a9881d736a50da72d93a9d318450ae94e7.tar.gz portage-161f55a9881d736a50da72d93a9d318450ae94e7.tar.bz2 portage-161f55a9881d736a50da72d93a9d318450ae94e7.zip |
Restoring the metadata EAPI check code-style to match that of the ebuild EAPI check.
svn path=/main/branches/2.0/; revision=2105
-rw-r--r-- | pym/portage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py index 3b83d9b84..5a4b64f51 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5344,7 +5344,7 @@ class portdbapi(dbapi): if doregen and mylocation==self.mysettings["PORTDIR"] and metacachedir and self.metadb[cat].has_key(pkg): metadata=self.metadb[cat][pkg] - if not metadata.has_key("EAPI") or metadata["EAPI"].strip() == '': + if "EAPI" not in metadata or not metadata["EAPI"].strip(): metadata["EAPI"] = "0" if not eapi_is_supported(metadata["EAPI"]): |