Fix logic wrt exit_status_check and elog_process in doebuild(). (trunk r8710)
authorZac Medico <zmedico@gentoo.org>
Tue, 27 Nov 2007 21:12:26 +0000 (21:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 27 Nov 2007 21:12:26 +0000 (21:12 -0000)
svn path=/main/branches/2.1.2/; revision=8711

pym/portage.py

index 9c748aa8be97911c3a43c9432e093c655a376343..121df9a75942e5a01f648a4e84a4ac10230fefcc 100644 (file)
@@ -4502,7 +4502,7 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
                                alwaysdep=1, logfile=logfile)
                        if retval == os.EX_OK:
                                retval = exit_status_check(retval)
-                       else:
+                       if retval != os.EX_OK:
                                # The merge phase handles this already.  Callers don't know how
                                # far this function got, so we have to call elog_process() here
                                # so that it's only called once.