From: Zac Medico Date: Sun, 24 Dec 2006 23:49:25 +0000 (-0000) Subject: Make sure that bindbapi makes EAPI correctly default to 0 in all possible cases. X-Git-Tag: v2.1.2~222 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=967ada0394ca156938e81539bf4ac233a5b0f93c;p=portage.git Make sure that bindbapi makes EAPI correctly default to 0 in all possible cases. svn path=/main/trunk/; revision=5384 --- 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: