diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-04-16 00:15:56 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-04-16 00:15:56 -0700 |
commit | b61f053253076873e7c181e4cfad2038aa6f7283 (patch) | |
tree | 98171d6fc23df26e9431b11851a42e262656bf64 | |
parent | db49b97f8d9d855482ecdc9a5760d3d620948d1d (diff) | |
download | portage-b61f053253076873e7c181e4cfad2038aa6f7283.tar.gz portage-b61f053253076873e7c181e4cfad2038aa6f7283.tar.bz2 portage-b61f053253076873e7c181e4cfad2038aa6f7283.zip |
Avoid redundant news display for bug #412161.
-rw-r--r-- | pym/_emerge/main.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 0fbc4b7f7..7fbe84f01 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -381,7 +381,9 @@ def post_emerge(myaction, myopts, myfiles, _flush_elog_mod_echo() if not vardbapi._pkgs_changed: - display_news_notification(root_config, myopts) + # GLEP 42 says to display news *after* an emerge --pretend + if "--pretend" in myopts: + display_news_notification(root_config, myopts) # If vdb state has not changed then there's nothing else to do. return @@ -2033,6 +2035,7 @@ def emerge_main(args=None): level=logging.ERROR, noiselevel=-1) return 1 + # GLEP 42 says to display news *after* an emerge --pretend if "--pretend" not in myopts: display_news_notification(root_config, myopts) retval = action_build(settings, trees, mtimedb, |