projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19441b9
)
Restoring the metadata EAPI check code-style to match that of the ebuild EAPI check.
author
Jason Stubbs
<jstubbs@gentoo.org>
Wed, 5 Oct 2005 17:33:19 +0000
(17:33 -0000)
committer
Jason 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
patch
|
blob
|
history
diff --git
a/pym/portage.py
b/pym/portage.py
index 3b83d9b843376e4a74029db7d520c111458d827f..5a4b64f51070ac0fad9854943a3db48dc19b8d9f 100644
(file)
--- 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"]):