Bug #196427 - Don't display news notifications when in --pretend mode.
authorZac Medico <zmedico@gentoo.org>
Fri, 19 Oct 2007 16:53:08 +0000 (16:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 19 Oct 2007 16:53:08 +0000 (16:53 -0000)
svn path=/main/trunk/; revision=8179

pym/_emerge/__init__.py

index 587dcefbe07dcf5f2b70771d70ee92fe6f72789b..6519bc12d6e3a56cf49cfebe23a2dcea7e370b41 100644 (file)
@@ -6783,7 +6783,7 @@ def emerge_main():
                        display_news_notification(trees)
                retval = action_build(settings, trees, mtimedb,
                        myopts, myaction, myfiles, spinner)
-               if "--pretend" in myopts:
+               if "--pretend" not in myopts:
                        display_news_notification(trees)
                return retval