fixing #47690
authorgenone <genone@gentoo.org>
Thu, 22 Apr 2004 02:17:12 +0000 (02:17 -0000)
committergenone <genone@gentoo.org>
Thu, 22 Apr 2004 02:17:12 +0000 (02:17 -0000)
svn path=/; revision=106

trunk/src/etcat/ChangeLog
trunk/src/etcat/etcat

index c5fd64db1482f7687c28a98e0cd98be7555dd746..bdadcb662b811a5e9822572095672254d959f041 100644 (file)
@@ -1,3 +1,6 @@
+2004-04-20 Marius Mauch <genone@gentoo.org>
+       - fixing -u behavior so it matches equery (bug #47690)
+
 2004-03-13 Marius Mauch <genone@gentoo.org>
        - grouping version in --version output
 
index 459bd1d4168207efbe177f11a3d81f5b1642ec0e..e34856921b5b7cabb6d4fa42bf27da07cdd2113a 100755 (executable)
@@ -342,9 +342,14 @@ def uses(query, matches):
        print "[ Legend   : (U) Col 1 - Current USE flags        ]"
        print "[          : (I) Col 2 - Installed With USE flags ]"
 
+       if filter(gentoolkit.Package.is_installed, matches):
+               only_installed = True
+       else:
+               only_installed = False
+
        # Iterate through matches, printing a report for each package
        for p in matches:
-               if not p.is_installed():
+               if not p.is_installed() and only_installed:
                        continue
        
                bestver = p.get_cpv()