summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 0f402f6279..9641b988ab 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -235,6 +235,12 @@ def lockfile(name):
Use the file fn as a lock file, return when the lock has been acquired.
Returns a variable to pass to unlockfile().
"""
+ path = os.path.dirname(name)
+ if not os.path.isdir(path):
+ import bb, sys
+ bb.msg.error(bb.msg.domain.Util, "Error, lockfile path does not exist!: %s" % path)
+ sys.exit(1)
+
while True:
# If we leave the lockfiles lying around there is no problem
# but we should clean up after ourselves. This gives potential