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 3e97e3715..ff295e418 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1662,7 +1662,7 @@ class config:
myflags.sort()
#store setting in last element of configlist, the original environment:
- if myflags:
+ if myflags or mykey in self:
self.configlist[-1][mykey] = " ".join(myflags)
del myflags