summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-08-03 09:49:17 +0000
committerZac Medico <zmedico@gentoo.org>2006-08-03 09:49:17 +0000
commit7f9fe4299353861393bfd4d4aad6cbc1569d408c (patch)
tree63e0751d8c6a6833fee2fab670e5d5730da175f1 /pym
parent2d3be13790e411e3566a63d8d0ad0a36577bbb7d (diff)
downloadportage-7f9fe4299353861393bfd4d4aad6cbc1569d408c.tar.gz
portage-7f9fe4299353861393bfd4d4aad6cbc1569d408c.tar.bz2
portage-7f9fe4299353861393bfd4d4aad6cbc1569d408c.zip
Protect USE_EXPAND flags from -* in order to preserve previous behavior which has changed due to the fix for bug #142125.
svn path=/main/trunk/; revision=4114
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index effe789d6..a348cdd4f 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1450,6 +1450,7 @@ class config:
else:
self.configdict["auto"]["USE"]=""
use_expand = self.get("USE_EXPAND", "").split()
+ use_expand_protected = set()
else:
mydbs=self.configlist[:-1]
@@ -1471,6 +1472,7 @@ class config:
mystr = "-" + var_lower + "_" + x[1:]
else:
mystr = var_lower + "_" + x
+ use_expand_protected.add(mystr)
if mystr not in mysplit:
mysplit.append(mystr)
@@ -1478,7 +1480,10 @@ class config:
if x=="-*":
# "-*" is a special "minus" var that means "unset all settings".
# so USE="-* gnome" will have *just* gnome enabled.
- myflags=[]
+ if mykey == "USE":
+ myflags = list(use_expand_protected)
+ else:
+ myflags = []
continue
if x[0]=="+":