From: fuzzyray Date: Fri, 18 Jul 2008 19:30:58 +0000 (-0000) Subject: Remove prefixed '+/-' signs from IUSE for equery uses command. (Bug 232019) X-Git-Tag: gentoolkit-0.2.4.3~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=06fb5e8777a4065e8593c9eb9da319b728ad7be6;p=gentoolkit.git Remove prefixed '+/-' signs from IUSE for equery uses command. (Bug 232019) svn path=/; revision=496 --- diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 432f02f..daf5b5c 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,7 @@ +2008-07-18: Paul Varner + * equery: Remove prefixed '+/-' signs from IUSE for equery uses + command. (Bug 232019) + 2008-07-09: Paul Varner * revdep-rebuild: Fix revdep-rebuild to use TMPDIR instead of HOME for temporary files. (Bug 203414) diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index ba3634a..9d8f876 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -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 = []