From: Zac Medico Date: Tue, 31 Oct 2006 06:46:09 +0000 (-0000) Subject: Fix a KeyError when the profile doesn't define default USE. X-Git-Tag: v2.1.2~526 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0512bd0c41d6bb77f2923ba1fcdc1c223f868994;p=portage.git Fix a KeyError when the profile doesn't define default USE. svn path=/main/trunk/; revision=4885 --- diff --git a/pym/portage.py b/pym/portage.py index c20b44a0c..adb97c502 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1550,7 +1550,7 @@ class config: if best_match: defaults.append(cpdict[best_match]) defaults = " ".join(defaults) - if defaults != self.configdict["defaults"]["USE"]: + if defaults != self.configdict["defaults"].get("USE",""): self.configdict["defaults"]["USE"] = defaults has_changed = True useforce = []