Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/
Date: Thu, 17 Nov 2011 01:39:09
Message-Id: 957b1dcdde637338cdcef625b9c820bbfe50ae5f.zmedico@gentoo
1 commit: 957b1dcdde637338cdcef625b9c820bbfe50ae5f
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 17 01:38:48 2011 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 17 01:38:48 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=957b1dcd
7
8 Tweak emerge --quiet-build default handling.
9
10 Since --quiet-build is enabled be default, there's no need to have it
11 in the options dict except when it is enabled.
12
13 ---
14 pym/_emerge/Scheduler.py | 2 +-
15 pym/_emerge/main.py | 3 ---
16 2 files changed, 1 insertions(+), 4 deletions(-)
17
18 diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py
19 index cb4aab4..47f7c45 100644
20 --- a/pym/_emerge/Scheduler.py
21 +++ b/pym/_emerge/Scheduler.py
22 @@ -386,7 +386,7 @@ class Scheduler(PollScheduler):
23 """
24 background = (self._max_jobs is True or \
25 self._max_jobs > 1 or "--quiet" in self.myopts \
26 - or "--quiet-build" in self.myopts) and \
27 + or self.myopts.get("--quiet-build", "y") == "y") and \
28 not bool(self._opts_no_background.intersection(self.myopts))
29
30 if background:
31
32 diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
33 index a2995e2..5e9f13e 100644
34 --- a/pym/_emerge/main.py
35 +++ b/pym/_emerge/main.py
36 @@ -848,7 +848,6 @@ def parse_opts(tmpcmdline, silent=False):
37 "help" : "redirect build output to logs",
38 "type" : "choice",
39 "choices" : true_y_or_n,
40 - "default" : "y",
41 },
42
43 "--rebuild-if-new-rev": {
44 @@ -1092,8 +1091,6 @@ def parse_opts(tmpcmdline, silent=False):
45 myoptions.quiet = None
46
47 if myoptions.quiet_build in true_y:
48 - myoptions.quiet_build = True
49 - else:
50 myoptions.quiet_build = None
51
52 if myoptions.rebuild_if_new_ver in true_y: