Silently omit info_pkgs that aren't installed. Thanks to solar.
authorZac Medico <zmedico@gentoo.org>
Fri, 3 Nov 2006 21:14:40 +0000 (21:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 3 Nov 2006 21:14:40 +0000 (21:14 -0000)
svn path=/main/trunk/; revision=4918

bin/emerge

index 07c54e282997a337c9f115d47487d51b87ba53d5..620b456235cf94eda2c2af4fd1d23ef36fd3d05d 100755 (executable)
@@ -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]")