From: fuzzyray Date: Fri, 16 Sep 2005 19:23:57 +0000 (-0000) Subject: Fix 'equery uses' to not print USE flags multiple times. Bug #91623 X-Git-Tag: gentoolkit-0.2.4.3~277 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d9c622708af29e5fa93c6d55b1baed50761f863b;p=gentoolkit.git Fix 'equery uses' to not print USE flags multiple times. Bug #91623 svn path=/; revision=236 --- diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index b0f15f6..ef19072 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -27,6 +27,7 @@ sys.path.insert(0, "/usr/lib/gentoolkit/pym") import gentoolkit import portage import portage_checksum +from portage_util import unique_array import gentoolkit.pprinter as pp from gentoolkit.pprinter import print_info, print_error, print_warn, die @@ -499,7 +500,10 @@ class CmdDisplayUSEs(Command): iuse = p.get_env_var("IUSE") if iuse: - usevar = iuse.split() + # Fix Bug #91623 by making sure the list of USE flags is unique + # Added sort to make output prettier + usevar = unique_array(iuse.split()) + usevar.sort() else: usevar = []