From: Jason Stubbs Date: Wed, 5 Oct 2005 17:33:19 +0000 (-0000) Subject: Restoring the metadata EAPI check code-style to match that of the ebuild EAPI check. X-Git-Tag: v2.0.53_rc4_2111~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=161f55a9881d736a50da72d93a9d318450ae94e7;p=portage.git Restoring the metadata EAPI check code-style to match that of the ebuild EAPI check. svn path=/main/branches/2.0/; revision=2105 --- 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"]):