ManifestScheduler: tweak _task_exit output order
authorZac Medico <zmedico@gentoo.org>
Sat, 6 Oct 2012 17:26:26 +0000 (10:26 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 6 Oct 2012 17:26:26 +0000 (10:26 -0700)
This ensures that errors are logged before new jobs are scheduled.

pym/portage/package/ebuild/_parallel_manifest/ManifestScheduler.py

index b002066fec7fd4a12a51db79ee280b4e61697622..77d41339a586f57fb7462f77b26d0b072169e9ed 100644 (file)
@@ -79,10 +79,12 @@ class ManifestScheduler(AsyncScheduler):
                                        gpg_cmd=self._gpg_cmd, gpg_vars=self._gpg_vars)
 
        def _task_exit(self, task):
-               AsyncScheduler._task_exit(self, task)
+
                if task.returncode != os.EX_OK:
                        if not self._terminated_tasks:
                                portage.writemsg(
                                        "Error processing %s%s%s, continuing...\n" %
                                        (task.cp, _repo_separator, task.repo_config.name),
                                        noiselevel=-1)
+
+               AsyncScheduler._task_exit(self, task)