summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/EbuildBuildDir.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-21 18:13:33 -0700
committerZac Medico <zmedico@gentoo.org>2010-11-23 17:37:10 -0800
commitd427adf0f29f819eae26fda5dee22e099dd96238 (patch)
treed472eb540b7016eeb09b92d5abd747c5156bcbdf /pym/_emerge/EbuildBuildDir.py
parentbbce62ccae17b6db10ecd99e76589b7174f63f55 (diff)
downloadportage-d427adf0f29f819eae26fda5dee22e099dd96238.tar.gz
portage-d427adf0f29f819eae26fda5dee22e099dd96238.tar.bz2
portage-d427adf0f29f819eae26fda5dee22e099dd96238.zip
AsynchronousLock: use subprocess if no threads
Diffstat (limited to 'pym/_emerge/EbuildBuildDir.py')
-rw-r--r--pym/_emerge/EbuildBuildDir.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/EbuildBuildDir.py b/pym/_emerge/EbuildBuildDir.py
index c901fe667..1da3c93ae 100644
--- a/pym/_emerge/EbuildBuildDir.py
+++ b/pym/_emerge/EbuildBuildDir.py
@@ -55,7 +55,7 @@ class EbuildBuildDir(SlotObject):
scheduler=self.scheduler)
builddir_lock.start()
builddir_lock.wait()
- self._lock_obj = builddir_lock.lock_obj
+ self._lock_obj = builddir_lock
self.settings['PORTAGE_BUILDIR_LOCKED'] = '1'
finally:
self.locked = self._lock_obj is not None
@@ -79,7 +79,7 @@ class EbuildBuildDir(SlotObject):
if self._lock_obj is None:
return
- portage.locks.unlockdir(self._lock_obj)
+ self._lock_obj.unlock()
self._lock_obj = None
self.locked = False
self.settings.pop('PORTAGE_BUILDIR_LOCKED', None)