summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-06 18:45:19 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-06 18:45:19 +0000
commit4f220508c4606c2aeb694fc9d9e25d62e777cb77 (patch)
tree480d39463178cd508023ef0d315d90d29506f719
parent1f0452f69e03b728ae26f6e5800fe52dbd0cd649 (diff)
downloadportage-4f220508c4606c2aeb694fc9d9e25d62e777cb77.tar.gz
portage-4f220508c4606c2aeb694fc9d9e25d62e777cb77.tar.bz2
portage-4f220508c4606c2aeb694fc9d9e25d62e777cb77.zip
* Implement MergeListItem._poll() and _wait().
* Fix BinpkgVerifier.start() to call wait() since it's not asynchronous. svn path=/main/trunk/; revision=10962
-rw-r--r--pym/_emerge/__init__.py9
1 files changed, 9 insertions, 0 deletions
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