Don't call emergelog() from the parallel-fetch process for bug #88837. This patch...
authorZac Medico <zmedico@gentoo.org>
Mon, 31 Jul 2006 18:34:36 +0000 (18:34 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 31 Jul 2006 18:34:36 +0000 (18:34 -0000)
svn path=/main/branches/2.1/; revision=4070

bin/emerge

index 3f7d6b94430324d1d77269f92339af008d4e838b..0788488968044991d20ff88bb557a9323fcc18ad 100755 (executable)
@@ -484,9 +484,12 @@ def emergelog(mystr,short_msg=None):
                        print "emergelog():",e
                pass
 
+# This hack prevents parallel-fetch from confusing emerge.log parsers.
+emerge_pid = os.getpid()
 def emergeexit():
        """This gets out final log message in before we quit."""
-       if "--pretend" not in myopts:
+       global emerge_pid
+       if "--pretend" not in myopts and emerge_pid == os.getpid():
                emergelog(" *** terminating.")
        if "notitles" not in portage.settings.features:
                xtermTitleReset()