From 967ada0394ca156938e81539bf4ac233a5b0f93c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 24 Dec 2006 23:49:25 +0000 Subject: [PATCH] Make sure that bindbapi makes EAPI correctly default to 0 in all possible cases. svn path=/main/trunk/; revision=5384 --- pym/portage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/portage.py b/pym/portage.py index b5e7820d1..98e899b12 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -4655,9 +4655,9 @@ class bindbapi(fakedbapi): # or the tbz2 is corrupt. if myval: mydata[x] = " ".join(myval.split()) - eapi = mydata.get("EAPI") - if eapi is not None and not eapi: - mydata["EAPI"] = "0" + if "EAPI" in mykeys: + if not mydata.setdefault("EAPI", "0"): + mydata["EAPI"] = "0" if cache_me: aux_cache = {} for x in self._aux_cache_keys: -- 2.26.2