summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-10-05 17:33:19 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-10-05 17:33:19 +0000
commit161f55a9881d736a50da72d93a9d318450ae94e7 (patch)
treed27a5bb2268637186aadef403987be8d007048d9
parent19441b9b44bcfb6b177a8eaac622730326bc0770 (diff)
downloadportage-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.py2
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"]):