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

pym/portage/__init__.py

index b6b0e0c0e893ed6087572a2a358f9999875bb787..d3f87ae4016989ea6df340d43ab253c6392b9c4e 100644 (file)
@@ -4539,7 +4539,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.