chk_updated_info_files: handle --quiet
authorZac Medico <zmedico@gentoo.org>
Wed, 30 Mar 2011 18:36:35 +0000 (11:36 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 30 Mar 2011 18:38:00 +0000 (11:38 -0700)
This will fix bug #361257.

pym/_emerge/main.py

index d4b14fcc43046160bf70403b0a8710678ccf4cab..96fee89ab484636a5f3b16b8f2a1aae355c64a20 100644 (file)
@@ -114,10 +114,12 @@ def chk_updated_info_files(root, infodirs, prev_mtimes, retval):
 
                if not regen_infodirs:
                        portage.writemsg_stdout("\n")
-                       out.einfo("GNU info directory index is up-to-date.")
+                       if portage.util.noiselimit >= 0:
+                               out.einfo("GNU info directory index is up-to-date.")
                else:
                        portage.writemsg_stdout("\n")
-                       out.einfo("Regenerating GNU info directory index...")
+                       if portage.util.noiselimit >= 0:
+                               out.einfo("Regenerating GNU info directory index...")
 
                        dir_extensions = ("", ".gz", ".bz2")
                        icount=0
@@ -204,7 +206,7 @@ def chk_updated_info_files(root, infodirs, prev_mtimes, retval):
                                        (icount, badcount))
                                writemsg_level(errmsg, level=logging.ERROR, noiselevel=-1)
                        else:
-                               if icount > 0:
+                               if icount > 0 and portage.util.noiselimit >= 0:
                                        out.einfo("Processed %d info files." % (icount,))
 
 def display_preserved_libs(vardbapi, myopts):