Fix EbuildPhase._set_returncode() so that it correctly updates the returncode
authorZac Medico <zmedico@gentoo.org>
Mon, 7 Jul 2008 02:18:58 +0000 (02:18 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 7 Jul 2008 02:18:58 +0000 (02:18 -0000)
attrbute instead of just a local variable.

svn path=/main/trunk/; revision=10964

pym/_emerge/__init__.py

index a1a14cca92b15f38ccefcbab647c892152501395..f497bd7d70740256ce0c58db721b25e4c1a3a202 100644 (file)
@@ -2288,13 +2288,12 @@ class EbuildPhase(SubProcess):
                                for l in wrap(msg, 72):
                                        eerror(l, phase=self.phase, key=self.pkg.cpv)
 
-               returncode = self.returncode
                settings = self.settings
                portage._post_phase_userpriv_perms(settings)
                if self.phase == "install":
                        portage._check_build_log(settings)
-                       if returncode == os.EX_OK:
-                               returncode = portage._post_src_install_checks(settings)
+                       if self.returncode == os.EX_OK:
+                               self.returncode = portage._post_src_install_checks(settings)
 
 class EbuildBinpkg(EbuildPhase):
        """