summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
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 = []