From: genone Date: Fri, 6 Feb 2004 23:42:58 +0000 (-0000) Subject: fix for equery uses foo with changed use flags, see bug 39652 X-Git-Tag: gentoolkit-0.2.4.3~421 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=defd988e5abae69fde6248779289ab2f922261f7;p=gentoolkit.git fix for equery uses foo with changed use flags, see bug 39652 svn path=/; revision=81 --- 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: