From 89fc913fe1210ba8c110c2841f0c50547579c17a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 3 Nov 2006 21:14:40 +0000 Subject: [PATCH] Silently omit info_pkgs that aren't installed. Thanks to solar. svn path=/main/trunk/; revision=4918 --- bin/emerge | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/emerge b/bin/emerge index 07c54e282..620b45623 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3592,11 +3592,9 @@ def action_info(settings, trees, myopts, myfiles): pkgs += [mycpv[2] + "-" + mycpv[3]] else: pkgs += [mycpv[2]] - if not pkgs: - pkgs = "[Not Present]" - else: + if pkgs: pkgs = ", ".join(sorted_versions(pkgs)) - print "%-20s %s" % (x+":", pkgs) + print "%-20s %s" % (x+":", pkgs) else: print "%-20s %s" % (x+":", "[NOT VALID]") -- 2.26.2