Do put empty incrementals in the environment if they are already set.
authorZac Medico <zmedico@gentoo.org>
Sun, 22 Oct 2006 05:55:13 +0000 (05:55 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Oct 2006 05:55:13 +0000 (05:55 -0000)
svn path=/main/trunk/; revision=4791

pym/portage.py

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