From: Zac Medico Date: Thu, 5 Aug 2010 23:02:25 +0000 (-0700) Subject: Bug #331271 - Fix USE_EXPAND wildcards so that the USE="linguas_en_US X-Git-Tag: v2.2_rc68~390 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7d92c18b49fabc98f75ca55c51acd2b849c39f5c;p=portage.git Bug #331271 - Fix USE_EXPAND wildcards so that the USE="linguas_en_US -linguas_*" case is handled correctly. --- 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