diff options
-rw-r--r-- | bitbake/lib/bb/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index f468fafc12..e02969c07f 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -401,6 +401,10 @@ def lockfile(name): | |||
401 | bb.msg.error(bb.msg.domain.Util, "Error, lockfile path does not exist!: %s" % path) | 401 | bb.msg.error(bb.msg.domain.Util, "Error, lockfile path does not exist!: %s" % path) |
402 | sys.exit(1) | 402 | sys.exit(1) |
403 | 403 | ||
404 | if not os.access(path, os.W_OK): | ||
405 | bb.msg.error(bb.msg.domain.Util, "Error, lockfile path is not writable!: %s" % path) | ||
406 | sys.exit(1) | ||
407 | |||
404 | while True: | 408 | while True: |
405 | # If we leave the lockfiles lying around there is no problem | 409 | # If we leave the lockfiles lying around there is no problem |
406 | # but we should clean up after ourselves. This gives potential | 410 | # but we should clean up after ourselves. This gives potential |