From 4f220508c4606c2aeb694fc9d9e25d62e777cb77 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 6 Jul 2008 18:45:19 +0000 Subject: [PATCH] * Implement MergeListItem._poll() and _wait(). * Fix BinpkgVerifier.start() to call wait() since it's not asynchronous. svn path=/main/trunk/; revision=10962 --- pym/_emerge/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.26.2