diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-02-10 11:47:38 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-02-10 11:47:38 -0800 |
commit | 57a1219ba81b8f7d9c9beecf27ed500da6239b3a (patch) | |
tree | c2c9c07996755bd7dc217208d1c337844f2bdad2 /pym/_emerge/Binpkg.py | |
parent | c85b1d7149f09e64b5ed4f5e45742b6e5a9df38b (diff) | |
download | portage-57a1219ba81b8f7d9c9beecf27ed500da6239b3a.tar.gz portage-57a1219ba81b8f7d9c9beecf27ed500da6239b3a.tar.bz2 portage-57a1219ba81b8f7d9c9beecf27ed500da6239b3a.zip |
EbuildMerge: add exit_hook to unlock build dir
This is needed since commit 7a6c34cc6bd6eb20a97e05347f87a0157f4ae58a in
order to ensure that the build dir is unlocked before exit listeners
are called. It fixes failures in catalyst stage 1 builds where two
instances of the same package, built sequentially for separate roots,
interfere with eachother's build dir lock.
Diffstat (limited to 'pym/_emerge/Binpkg.py')
-rw-r--r-- | pym/_emerge/Binpkg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/Binpkg.py b/pym/_emerge/Binpkg.py index 6c70b19f0..395a506c3 100644 --- a/pym/_emerge/Binpkg.py +++ b/pym/_emerge/Binpkg.py @@ -373,13 +373,13 @@ class Binpkg(CompositeTask): self._build_dir.unlock() def create_install_task(self): - task = EbuildMerge(find_blockers=self.find_blockers, + task = EbuildMerge(exit_hook=self._install_exit, + find_blockers=self.find_blockers, ldpath_mtimes=self.ldpath_mtimes, logger=self.logger, pkg=self.pkg, pkg_count=self.pkg_count, pkg_path=self._pkg_path, scheduler=self.scheduler, settings=self.settings, tree=self._tree, world_atom=self.world_atom) - task.addExitListener(self._install_exit) return task def _install_exit(self, task): |