From 30ca18c1f518668d9e50b29172518a18418edd52 Mon Sep 17 00:00:00 2001 From: genone Date: Thu, 22 Apr 2004 02:17:12 +0000 Subject: [PATCH] fixing #47690 svn path=/; revision=106 --- trunk/src/etcat/ChangeLog | 3 +++ trunk/src/etcat/etcat | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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() -- 2.26.2