From defd988e5abae69fde6248779289ab2f922261f7 Mon Sep 17 00:00:00 2001 From: genone Date: Fri, 6 Feb 2004 23:42:58 +0000 Subject: [PATCH] fix for equery uses foo with changed use flags, see bug 39652 svn path=/; revision=81 --- trunk/src/equery/equery | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index 6160a82..104b68a 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -315,8 +315,10 @@ class CmdDisplayUSEs(Command): bestver = p.get_cpv() iuse = p.get_env_var("IUSE") - if iuse: usevar = iuse.split() - else: usevar = [] + if iuse: + usevar = iuse.split() + else: + usevar = [] inuse = [] used = p.get_use_vars().split() @@ -335,8 +337,10 @@ class CmdDisplayUSEs(Command): except KeyError: desc = "" - if u in useflags: inuse = 1 - if u in used: inused = 1 + if u in useflags: + inuse = 1 + if u in used: + inused = 1 output.append((inuse, inused, u, desc)) @@ -357,7 +361,7 @@ class CmdDisplayUSEs(Command): else: print " %s %s" % (flag[inuse], flag[inused]), - print colour[inuse](u.ljust(maxflag_len)), + print colour[inuse](u.ljust(maxflag_len)), # print description if desc: -- 2.26.2