fix for equery uses foo with changed use flags, see bug 39652
authorgenone <genone@gentoo.org>
Fri, 6 Feb 2004 23:42:58 +0000 (23:42 -0000)
committergenone <genone@gentoo.org>
Fri, 6 Feb 2004 23:42:58 +0000 (23:42 -0000)
svn path=/; revision=81

trunk/src/equery/equery

index 6160a821a54d52418228b6f114c89d44011dc671..104b68af1155bc2ae1c82e49f326fc8c0875c544 100755 (executable)
@@ -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: