Don't put empty incrementals in the environment.
authorZac Medico <zmedico@gentoo.org>
Sun, 22 Oct 2006 05:53:00 +0000 (05:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Oct 2006 05:53:00 +0000 (05:53 -0000)
svn path=/main/trunk/; revision=4790

pym/portage.py

index 2882faacd2db580e6b9f2613be9ca6e67466a6b4..3e97e3715b58bc4abd74ab57e7b92330a123ef24 100644 (file)
@@ -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.