From 0512bd0c41d6bb77f2923ba1fcdc1c223f868994 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 31 Oct 2006 06:46:09 +0000 Subject: [PATCH] Fix a KeyError when the profile doesn't define default USE. svn path=/main/trunk/; revision=4885 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [] -- 2.26.2