summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 2882faacd..3e97e3715 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1662,7 +1662,8 @@ class config:
myflags.sort()
#store setting in last element of configlist, the original environment:
- self.configlist[-1][mykey]=string.join(myflags," ")
+ if myflags:
+ self.configlist[-1][mykey] = " ".join(myflags)
del myflags
# Do the USE calculation last because it depends on USE_EXPAND.