diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-11-06 23:14:08 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-11-06 23:14:08 +0000 |
commit | 5a0b850fb9bf99eb4dceee8454aa40bc0fb3ff5d (patch) | |
tree | 5068d77321662a0212b89b8314c203409b8f51fd | |
parent | da2ff702c7aaa418bb7efd5b33d23bedc34607d5 (diff) | |
download | portage-5a0b850fb9bf99eb4dceee8454aa40bc0fb3ff5d.tar.gz portage-5a0b850fb9bf99eb4dceee8454aa40bc0fb3ff5d.tar.bz2 portage-5a0b850fb9bf99eb4dceee8454aa40bc0fb3ff5d.zip |
Bug #291200 - Add a --quiet-build option to redirect all build output to logs
alone, and do not display it on stdout.
svn path=/main/trunk/; revision=14783
-rw-r--r-- | man/emerge.1 | 4 | ||||
-rw-r--r-- | pym/_emerge/Scheduler.py | 3 | ||||
-rw-r--r-- | pym/_emerge/help.py | 6 | ||||
-rw-r--r-- | pym/_emerge/main.py | 4 |
4 files changed, 15 insertions, 2 deletions
diff --git a/man/emerge.1 b/man/emerge.1 index f8aa26d8a..93798b7e7 100644 --- a/man/emerge.1 +++ b/man/emerge.1 @@ -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 diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index f969f7105..1f37a5f0c 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -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: diff --git a/pym/_emerge/help.py b/pym/_emerge/help.py index 422442fb4..82f0666c8 100644 --- a/pym/_emerge/help.py +++ b/pym/_emerge/help.py @@ -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") diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 8e69ad057..2a854fe05 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -63,7 +63,9 @@ options=[ "--nodeps", "--noreplace", "--nospinner", "--oneshot", "--onlydeps", "--pretend", -"--quiet", "--resume", +"--quiet", +"--quiet-build", +"--resume", "--searchdesc", "--skipfirst", "--tree", |