* Implement MergeListItem._poll() and _wait().
authorZac Medico <zmedico@gentoo.org>
Sun, 6 Jul 2008 18:45:19 +0000 (18:45 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 6 Jul 2008 18:45:19 +0000 (18:45 -0000)
* Fix BinpkgVerifier.start() to call wait() since it's not asynchronous.

svn path=/main/trunk/; revision=10962

pym/_emerge/__init__.py

index ca69164b5fe5fb5bc28e6bf02c8c04433d05a39c..c5d3d4c52fd95ae816d71d20c37d46da75fca122 100644 (file)
@@ -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