summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gentoo.org>2005-09-28 06:06:47 +0000
committerBrian Harring <ferringb@gentoo.org>2005-09-28 06:06:47 +0000
commitb7c3b2269acde1acf8ba3a7c1de866b8abfb1473 (patch)
tree0e45008082f66d46c93ededf090ead9d2d843d11 /pym/portage.py
parentd3511e96ae2df2eb9a18f0603eb18c37eb2f8202 (diff)
downloadportage-b7c3b2269acde1acf8ba3a7c1de866b8abfb1473.tar.gz
portage-b7c3b2269acde1acf8ba3a7c1de866b8abfb1473.tar.bz2
portage-b7c3b2269acde1acf8ba3a7c1de866b8abfb1473.zip
fixups to EAPI handling.
svn path=/main/branches/2.0/; revision=2035
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pym/portage.py b/pym/portage.py
index bcaff842c..b54bb242a 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -4552,7 +4552,7 @@ class bindbapi(fakedbapi):
mylist.append(myval)
if "EAPI" in wants:
idx = wants.index("EAPI")
- if mylist[idx] in ("", "0"):
+ if mylist[idx] in ("", "0", None):
mylist[idx] = 0
elif mylist[idx] == 0:
pass
@@ -4839,12 +4839,12 @@ class vardbapi(dbapi):
results.append(myd)
if "EAPI" in wants:
idx = wants.index("EAPI")
- if mylist[idx] in ("", "0"):
- mylist[idx] = 0
- elif mylist[idx] == 0:
+ if results[idx] in ("", "0", None):
+ results[idx] = 0
+ elif results[idx] == 0:
pass
else:
- mylist[idx] = 1
+ results[idx] = 1
return results