Bug #192706 - Do not print a summary at the end of --depclean
authorZac Medico <zmedico@gentoo.org>
Wed, 26 Sep 2007 21:58:28 +0000 (21:58 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 26 Sep 2007 21:58:28 +0000 (21:58 -0000)
if there is nothing to clean and --quiet is enabled.

svn path=/main/trunk/; revision=7838

pym/emerge/__init__.py

index 6e0dc1d309315db7b4d5ed6374676c186a6d0643..840a750e3d5ec40fa3fb99bd19b00dd27ddfde89 100644 (file)
@@ -5744,6 +5744,9 @@ def action_depclean(settings, trees, ldpath_mtimes,
        if action == "prune":
                return
 
+       if not cleanlist and "--quiet" in myopts:
+               return
+
        print "Packages installed:   "+str(len(myvarlist))
        print "Packages in world:    "+str(len(worldlist))
        print "Packages in system:   "+str(len(syslist))