summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/build.py
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-11-25 14:25:59 +0000
committerRichard Purdie <richard@openedhand.com>2007-11-25 14:25:59 +0000
commitc0adbcbc1cbf6cd5a2a1cc41f5c7bcb8988019f6 (patch)
tree56a87d5ad10661e2db9189188ba7666e43361322 /bitbake/lib/bb/build.py
parenta7ed27d541a5d2c5a8656465a2b1dac2e131b1c5 (diff)
downloadpoky-c0adbcbc1cbf6cd5a2a1cc41f5c7bcb8988019f6.tar.gz
bitbake: Add support for task specific lockfiles
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3232 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r--bitbake/lib/bb/build.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index f41898ec14..1c015fe9a3 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -97,11 +97,19 @@ def exec_func(func, d, dirs = None):
97 if adir and os.access(adir, os.F_OK): 97 if adir and os.access(adir, os.F_OK):
98 os.chdir(adir) 98 os.chdir(adir)
99 99
100 locks = []
101 lockfiles = (data.expand(data.getVarFlag(func, 'lockfiles', d), d) or "").split()
102 for lock in lockfiles:
103 locks.append(bb.utils.lockfile(lock))
104
100 if data.getVarFlag(func, "python", d): 105 if data.getVarFlag(func, "python", d):
101 exec_func_python(func, d) 106 exec_func_python(func, d)
102 else: 107 else:
103 exec_func_shell(func, d) 108 exec_func_shell(func, d)
104 109
110 for lock in locks:
111 bb.utils.unlockfile(lock)
112
105 if os.path.exists(prevdir): 113 if os.path.exists(prevdir):
106 os.chdir(prevdir) 114 os.chdir(prevdir)
107 115