# Create a dummy pipe so the scheduler can monitor
# the process from inside a poll() loop.
fd_pipes[self._dummy_pipe_fd] = slave_fd
+ if self.background:
+ fd_pipes[1] = slave_fd
+ fd_pipes[2] = slave_fd
output_handler = self._dummy_handler
kwargs = {}
pkg = self.pkg
pkg_count = self.pkg_count
- fetcher = BinpkgFetcher(pkg=self.pkg, scheduler=self.scheduler)
+ fetcher = BinpkgFetcher(background=self.background,
+ pkg=self.pkg, scheduler=self.scheduler)
pkg_path = fetcher.pkg_path
self._pkg_path = pkg_path
verifier = None
if self._verify:
- verifier = BinpkgVerifier(pkg=self.pkg)
+ verifier = BinpkgVerifier(background=self.background, pkg=self.pkg)
self._start_task(verifier, self._verifier_exit)
return
settings = self.settings
settings.setcpv(pkg)
settings["EBUILD"] = self._ebuild_path
- ebuild_phase = EbuildPhase(
+ ebuild_phase = EbuildPhase(background=self.background,
pkg=pkg, phase=phase, scheduler=self.scheduler,
settings=settings, tree=self._tree)
settings.backup_changes("PORTAGE_BINPKG_FILE")
phase = "setup"
- ebuild_phase = EbuildPhase(
+ ebuild_phase = EbuildPhase(background=self.background,
pkg=self.pkg, phase=phase, scheduler=self.scheduler,
settings=settings, tree=self._tree)
self._unlock_builddir()
return
- extractor = BinpkgExtractorAsync(image_dir=self._image_dir,
+ extractor = BinpkgExtractorAsync(background=self.background,
+ image_dir=self._image_dir,
pkg=self.pkg, pkg_path=self._pkg_path, scheduler=self.scheduler)
portage.writemsg_stdout(">>> Extracting %s\n" % self.pkg.cpv)
self._start_task(extractor, self._extractor_exit)