Bug #291200 - Add a --quiet-build option to redirect all build output to logs
authorZac Medico <zmedico@gentoo.org>
Sat, 7 Nov 2009 01:11:25 +0000 (01:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 7 Nov 2009 01:11:25 +0000 (01:11 -0000)
alone, and do not display it on stdout. (trunk r14783)

svn path=/main/branches/2.1.7/; revision=14796

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

index bb3234d17e0ba9233f9a28d00c6bd38d1cd62417..ac4ac6a5d64697e80f8d1b57e438c1cdfe5dbcab 100644 (file)
@@ -464,6 +464,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 598ab659e30fcf5ea99f6afd0cb8721794081929..3ca46fb4afcd01a9d451ff6c8ba759c02a0e7a26 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 aae3bab2242bb2fe16b8e6b4e1547cd3e26c0494..5daf71a99cfd60354b2f05732c74d428ebd0c615 100644 (file)
@@ -494,6 +494,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 0ed2604a772b3812503e7af8455bd2ca7988b9b6..6613c453bfde9be8507c618cfcae85d549b4b4d8 100644 (file)
@@ -63,7 +63,9 @@ options=[
 "--nodeps",       "--noreplace",
 "--nospinner",    "--oneshot",
 "--onlydeps",     "--pretend",
-"--quiet",        "--resume",
+"--quiet",
+"--quiet-build",
+"--resume",
 "--searchdesc",
 "--skipfirst",
 "--tree",