Remove prefixed '+/-' signs from IUSE for equery uses command. (Bug 232019)
authorfuzzyray <fuzzyray@gentoo.org>
Fri, 18 Jul 2008 19:30:58 +0000 (19:30 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Fri, 18 Jul 2008 19:30:58 +0000 (19:30 -0000)
svn path=/; revision=496

trunk/ChangeLog
trunk/src/equery/equery

index 432f02fb271dc1fdc71aab7d8139ef786355dd3d..daf5b5cc9468b2abdea3c0145213e940e958d84a 100644 (file)
@@ -1,3 +1,7 @@
+2008-07-18: Paul Varner <fuzzyray@gentoo.org>
+       * equery: Remove prefixed '+/-' signs from IUSE for equery uses
+       command. (Bug 232019)
+
 2008-07-09: Paul Varner <fuzzyray@gentoo.org>
        * revdep-rebuild: Fix revdep-rebuild to use TMPDIR instead of HOME for
        temporary files. (Bug 203414)
index ba3634ad778d7457844eb688cad9b1ae109c3af3..9d8f876b18a54d32827bf9ae0aaffeb19363c6d3 100755 (executable)
@@ -565,6 +565,12 @@ class CmdDisplayUSEs(Command):
                                # Fix Bug #91623 by making sure the list of USE flags is unique
                                # Added sort to make output prettier
                                usevar = unique_array(iuse.split())
+
+                               # Remove prefixed +/- from flags in IUSE, Bug #232019
+                               for i in range(len(usevar)):
+                                       if usevar[i][0] == "+" or usevar[i][0] == "-":
+                                               usevar[i] = usevar[i][1:]
+
                                usevar.sort()
                        else:
                                usevar = []