diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-11-07 01:11:25 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-11-07 01:11:25 +0000 |
commit | 4ae3e4b1996d47a836dbc5f6ce5146674b1e0384 (patch) | |
tree | 844682054fc7aa2235784673dab554cd9853ba64 /pym/_emerge | |
parent | ddd081932988e196dba7897fb4dce52441655a43 (diff) | |
download | portage-4ae3e4b1996d47a836dbc5f6ce5146674b1e0384.tar.gz portage-4ae3e4b1996d47a836dbc5f6ce5146674b1e0384.tar.bz2 portage-4ae3e4b1996d47a836dbc5f6ce5146674b1e0384.zip |
Bug #291200 - Add a --quiet-build option to redirect all build output to logs
alone, and do not display it on stdout. (trunk r14783)
svn path=/main/branches/2.1.7/; revision=14796
Diffstat (limited to 'pym/_emerge')
-rw-r--r-- | pym/_emerge/Scheduler.py | 3 | ||||
-rw-r--r-- | pym/_emerge/help.py | 6 | ||||
-rw-r--r-- | pym/_emerge/main.py | 4 |
3 files changed, 11 insertions, 2 deletions
diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index 598ab659e..3ca46fb4a 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 aae3bab22..5daf71a99 100644 --- a/pym/_emerge/help.py +++ b/pym/_emerge/help.py @@ -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") diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 0ed2604a7..6613c453b 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", |