Also bump the counter for the "merge" phase since it calls spawnebuild (bug #135856).
authorZac Medico <zmedico@gentoo.org>
Wed, 7 Jun 2006 11:53:30 +0000 (11:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 7 Jun 2006 11:53:30 +0000 (11:53 -0000)
svn path=/main/trunk/; revision=3465

pym/portage.py

index 8dc6d4c0ccb85ce60d6c822257423604dbe13dc5..79271d36ae3275d1f989e88f9cfea009886a6d47 100644 (file)
@@ -2860,8 +2860,9 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
                                "%s-%s.log" % (str(vartree.dbapi.get_counter_tick_core("/")),
                                mysettings["PF"]))
 
-       if logfile and mydo in actionmap_deps and "PORTAGE_CALLER" in os.environ \
-               and os.environ["PORTAGE_CALLER"] == "emerge":
+       if logfile and "PORTAGE_CALLER" in os.environ and \
+               os.environ["PORTAGE_CALLER"] == "emerge" and \
+               mydo in ["merge"] + actionmap_deps.keys():
                # Increment the counter so that each new build attempt gets it's
                # own unique log file (portage uses the counter for nothing more than
                # log handling, though it can be used to determine merge order).