Fixed hasuses.
authorkarltk <karltk@gentoo.org>
Mon, 27 Sep 2004 14:32:22 +0000 (14:32 -0000)
committerkarltk <karltk@gentoo.org>
Mon, 27 Sep 2004 14:32:22 +0000 (14:32 -0000)
svn path=/; revision=143

trunk/src/equery/ChangeLog
trunk/src/equery/equery

index f727099e35db7a52622671bf66cdff0dd41a1e5c..d83bef14d8e30ee3e488ffdfb8ceaca0f7164f28 100644 (file)
@@ -6,6 +6,7 @@
        * Fixed reference to cppv
        * Added import of die
        * Added searching header to uses
+       * Fixed hasuses to report properly
 
 2004-09-08 Karl Trygve Kalleberg <karltk@gentoo.org>
        * Added man page rewrites by Katerina Barone-Adesi <katerinab@gmail.com>,
index a5fa8d52091283ce3e5885a37d70498900e3ab18..e31fc707ea05b1ea1d7447734cfab5871515abb6 100755 (executable)
@@ -1229,13 +1229,8 @@ class CmdFindUSEs(Command):
             else:
                 status = 2
 
-            # Drop all packages without the USE flag
-            useflags = []
-            if status == 1:
-                useflags = pkg.get_use_flags()
-            else:
-                useflags = pkg.get_env_var("IUSE")
-            
+            useflags = pkg.get_env_var("IUSE").split()
+
             if query not in useflags:
                 continue