From: genone Date: Thu, 22 Apr 2004 02:17:12 +0000 (-0000) Subject: fixing #47690 X-Git-Tag: gentoolkit-0.2.4.3~396 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=30ca18c1f518668d9e50b29172518a18418edd52;p=gentoolkit.git fixing #47690 svn path=/; revision=106 --- diff --git a/trunk/src/etcat/ChangeLog b/trunk/src/etcat/ChangeLog index c5fd64d..bdadcb6 100644 --- a/trunk/src/etcat/ChangeLog +++ b/trunk/src/etcat/ChangeLog @@ -1,3 +1,6 @@ +2004-04-20 Marius Mauch + - fixing -u behavior so it matches equery (bug #47690) + 2004-03-13 Marius Mauch - grouping version in --version output diff --git a/trunk/src/etcat/etcat b/trunk/src/etcat/etcat index 459bd1d..e348569 100755 --- a/trunk/src/etcat/etcat +++ b/trunk/src/etcat/etcat @@ -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()