Don't write to emerge.log when --pretend is enabled for bug #139449.
authorZac Medico <zmedico@gentoo.org>
Mon, 31 Jul 2006 18:25:35 +0000 (18:25 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 31 Jul 2006 18:25:35 +0000 (18:25 -0000)
svn path=/main/trunk/; revision=4068

bin/emerge

index 47559da90d0edfc44eef3ea2c808094b281648b6..8b6d85fb128a1483a81a2b49b167b0161153cdf7 100755 (executable)
@@ -2094,7 +2094,8 @@ class MergeTask(object):
                        # due to power failure, SIGKILL, etc...
                        mtimedb.commit()
 
-               emergelog(xterm_titles, " *** Finished. Cleaning up...")
+               if "--pretend" not in self.myopts:
+                       emergelog(xterm_titles, " *** Finished. Cleaning up...")
 
                # We're out of the loop... We're done. Delete the resume data.
                if mtimedb.has_key("resume"):