restore proper call logic
authorMarius Mauch <genone@gentoo.org>
Sun, 21 Oct 2007 10:30:17 +0000 (10:30 -0000)
committerMarius Mauch <genone@gentoo.org>
Sun, 21 Oct 2007 10:30:17 +0000 (10:30 -0000)
svn path=/main/trunk/; revision=8201

pym/_emerge/__init__.py

index 652f556a16df45a6f08b46ead25f193f1d6689e7..539b5740b5ba5f83bff22b93bdf0e26594f0379c 100644 (file)
@@ -6779,7 +6779,9 @@ def emerge_main():
                        display_news_notification(trees)
                retval = action_build(settings, trees, mtimedb,
                        myopts, myaction, myfiles, spinner)
-               if "--pretend" not in myopts:
+               # if --pretend was enabled then display_news_notification 
+               # was already called by post_emerge
+               if "--pretend" in myopts:
                        display_news_notification(trees)
                return retval