Allow USE_EXPAND vars to be overridden in the environment for bug #142909.
authorZac Medico <zmedico@gentoo.org>
Sun, 6 Aug 2006 00:18:01 +0000 (00:18 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 6 Aug 2006 00:18:01 +0000 (00:18 -0000)
svn path=/main/trunk/; revision=4175

pym/portage.py

index 9d5b25cf73b019ee97a25f9427dd69160c49e565..3da97fc51f37ed48aed1a1246ab77354cb0a8b3f 100644 (file)
@@ -1479,10 +1479,10 @@ class config:
 
                        myflags=[]
                        for curdb in mydbs:
-                               if not curdb.has_key(mykey):
+                               if mykey not in curdb and mykey != "USE":
                                        continue
                                #variables are already expanded
-                               mysplit=curdb[mykey].split()
+                               mysplit = curdb.get(mykey, "").split()
 
                                if mykey == "USE":
                                        for var in use_expand: