Restoring the metadata EAPI check code-style to match that of the ebuild EAPI check.
authorJason Stubbs <jstubbs@gentoo.org>
Wed, 5 Oct 2005 17:33:19 +0000 (17:33 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Wed, 5 Oct 2005 17:33:19 +0000 (17:33 -0000)
svn path=/main/branches/2.0/; revision=2105

pym/portage.py

index 3b83d9b843376e4a74029db7d520c111458d827f..5a4b64f51070ac0fad9854943a3db48dc19b8d9f 100644 (file)
@@ -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"]):