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: Mon, 16 Apr 2012 07:17:30
Message-Id: 1334560556.b61f053253076873e7c181e4cfad2038aa6f7283.zmedico@gentoo
1 commit: b61f053253076873e7c181e4cfad2038aa6f7283
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 16 07:15:56 2012 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 16 07:15:56 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=b61f0532
7
8 Avoid redundant news display for bug #412161.
9
10 ---
11 pym/_emerge/main.py | 5 ++++-
12 1 files changed, 4 insertions(+), 1 deletions(-)
13
14 diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
15 index 0fbc4b7..7fbe84f 100644
16 --- a/pym/_emerge/main.py
17 +++ b/pym/_emerge/main.py
18 @@ -381,7 +381,9 @@ def post_emerge(myaction, myopts, myfiles,
19 _flush_elog_mod_echo()
20
21 if not vardbapi._pkgs_changed:
22 - display_news_notification(root_config, myopts)
23 + # GLEP 42 says to display news *after* an emerge --pretend
24 + if "--pretend" in myopts:
25 + display_news_notification(root_config, myopts)
26 # If vdb state has not changed then there's nothing else to do.
27 return
28
29 @@ -2033,6 +2035,7 @@ def emerge_main(args=None):
30 level=logging.ERROR, noiselevel=-1)
31 return 1
32
33 + # GLEP 42 says to display news *after* an emerge --pretend
34 if "--pretend" not in myopts:
35 display_news_notification(root_config, myopts)
36 retval = action_build(settings, trees, mtimedb,