From: Zac Medico Date: Sun, 6 Jul 2008 18:45:19 +0000 (-0000) Subject: * Implement MergeListItem._poll() and _wait(). X-Git-Tag: v2.2_rc2~176 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4f220508c4606c2aeb694fc9d9e25d62e777cb77;p=portage.git * Implement MergeListItem._poll() and _wait(). * Fix BinpkgVerifier.start() to call wait() since it's not asynchronous. svn path=/main/trunk/; revision=10962 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index ca69164b5..c5d3d4c52 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -2771,6 +2771,7 @@ class BinpkgVerifier(AsynchronousTask): rval = 1 self.returncode = rval + self.wait() class BinpkgExtractorAsync(SpawnProcess): @@ -2859,6 +2860,14 @@ class MergeListItem(CompositeTask): if self.build_opts.fetchonly: self.failed_fetches.append(self.pkg.cpv) + def _poll(self): + self._install_task.poll() + return self.returncode + + def _wait(self): + self._install_task.wait() + return self.returncode + def merge(self): pkg = self.pkg