From: Zac Medico Date: Sat, 6 Oct 2012 17:26:26 +0000 (-0700) Subject: ManifestScheduler: tweak _task_exit output order X-Git-Tag: v2.2.0_alpha136~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ddabf811a04a2e12f1f98e623a17f928deb2b3ba;p=portage.git ManifestScheduler: tweak _task_exit output order This ensures that errors are logged before new jobs are scheduled. --- diff --git a/pym/portage/package/ebuild/_parallel_manifest/ManifestScheduler.py b/pym/portage/package/ebuild/_parallel_manifest/ManifestScheduler.py index b002066fe..77d41339a 100644 --- a/pym/portage/package/ebuild/_parallel_manifest/ManifestScheduler.py +++ b/pym/portage/package/ebuild/_parallel_manifest/ManifestScheduler.py @@ -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)