Bug #291200 - Add a --quiet-build option to redirect all build output to logs
authorZac Medico <zmedico@gentoo.org>
Fri, 6 Nov 2009 23:14:08 +0000 (23:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 6 Nov 2009 23:14:08 +0000 (23:14 -0000)
alone, and do not display it on stdout.

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

man/emerge.1
pym/_emerge/Scheduler.py
pym/_emerge/help.py
pym/_emerge/main.py

index f8aa26d8a48298f66f9d5df143c34d42e3973555..93798b7e73b75293ad6dd86f88a2b58d8f305ca3 100644 (file)
@@ -471,6 +471,10 @@ b  blocked by another package (automatically resolved conflict)
 Results may vary, but the general outcome is a reduced or condensed
 output from portage's displays.
 .TP
+.BR \-\-quiet\-build
+Redirect all build output to logs alone, and do not
+display it on stdout.
+.TP
 .BR "\-\-reinstall changed\-use"
 Tells emerge to include installed packages where USE flags have
 changed since installation.  Unlike \fB\-\-newuse\fR, this option does
index f969f7105f595f3282869e2b369d10b60ae99a2d..1f37a5f0c1afb6188418683dd246ff6e12ed6780 100644 (file)
@@ -294,7 +294,8 @@ class Scheduler(PollScheduler):
                @returns: True if background mode is enabled, False otherwise.
                """
                background = (self._max_jobs is True or \
-                       self._max_jobs > 1 or "--quiet" in self.myopts) and \
+                       self._max_jobs > 1 or "--quiet" in self.myopts \
+                       or "--quiet-build" in self.myopts) and \
                        not bool(self._opts_no_background.intersection(self.myopts))
 
                if background:
index 422442fb470e5430ce3ef6561ab051a8d8e3aa4a..82f0666c8a11ab222da555c9398c8d4e163b5d7b 100644 (file)
@@ -497,6 +497,12 @@ def help(myopts, havecolor=1):
                print("              Effects vary, but the general outcome is a reduced or condensed")
                print("              output from portage's displays.")
                print()
+               print("       "+green("--quiet-build"))
+               desc = "Redirect all build output to logs alone, and do not " + \
+                       "display it on stdout."
+               for line in wrap(desc, desc_width):
+                       print(desc_indent + line)
+               print()
                print("       "+green("--reinstall ") + turquoise("changed-use"))
                print("              Tells emerge to include installed packages where USE flags have")
                print("              changed since installation.  Unlike --newuse, this option does")
index 8e69ad057863e5697e46b712cc1076842004fcb8..2a854fe05bc1ab52e09faf50dc185d1d4e0c8765 100644 (file)
@@ -63,7 +63,9 @@ options=[
 "--nodeps",       "--noreplace",
 "--nospinner",    "--oneshot",
 "--onlydeps",     "--pretend",
-"--quiet",        "--resume",
+"--quiet",
+"--quiet-build",
+"--resume",
 "--searchdesc",
 "--skipfirst",
 "--tree",