From d9c622708af29e5fa93c6d55b1baed50761f863b Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Fri, 16 Sep 2005 19:23:57 +0000 Subject: [PATCH] Fix 'equery uses' to not print USE flags multiple times. Bug #91623 svn path=/; revision=236 --- trunk/src/equery/equery | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 = [] -- 2.26.2