Bug #331271 - Fix USE_EXPAND wildcards so that the USE="linguas_en_US
authorZac Medico <zmedico@gentoo.org>
Thu, 5 Aug 2010 23:02:25 +0000 (16:02 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 5 Aug 2010 23:02:25 +0000 (16:02 -0700)
-linguas_*" case is handled correctly.

pym/portage/package/ebuild/config.py

index 7266a63661013b788356cc412b70d8deaab7e83b..bfff1cc442b5a8b9298b05ed36f5d4f2ba740d78 100644 (file)
@@ -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