From 7d92c18b49fabc98f75ca55c51acd2b849c39f5c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 5 Aug 2010 16:02:25 -0700 Subject: [PATCH] Bug #331271 - Fix USE_EXPAND wildcards so that the USE="linguas_en_US -linguas_*" case is handled correctly. --- pym/portage/package/ebuild/config.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.26.2