summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-05 16:02:25 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-05 16:02:25 -0700
commit7d92c18b49fabc98f75ca55c51acd2b849c39f5c (patch)
treed2191d38a2db781a5f937663471b3378cef19edd /pym
parent7606baaf099a9ea209507a677fcc60077d390052 (diff)
downloadportage-7d92c18b49fabc98f75ca55c51acd2b849c39f5c.tar.gz
portage-7d92c18b49fabc98f75ca55c51acd2b849c39f5c.tar.bz2
portage-7d92c18b49fabc98f75ca55c51acd2b849c39f5c.zip
Bug #331271 - Fix USE_EXPAND wildcards so that the USE="linguas_en_US
-linguas_*" case is handled correctly.
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/package/ebuild/config.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py
index 7266a6366..bfff1cc44 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -2292,6 +2292,12 @@ class config(object):
continue
if x[0] == "-":
+ if x[-2:] == '_*':
+ prefix = x[1:-1]
+ prefix_len = len(prefix)
+ myflags.difference_update(
+ [y for y in myflags if \
+ y[:prefix_len] == prefix])
myflags.discard(x[1:])
continue