summaryrefslogtreecommitdiffstats
path: root/meta-rt
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-03-08 09:33:40 -0700
committerSaul Wold <sgw@linux.intel.com>2011-05-04 15:43:26 -0700
commit7959e40061978a2e8ac5083f9be3e7e27037d60f (patch)
treedb60e7f15906cf9d47f7042ede7dec5dd286bfd9 /meta-rt
parent3d2c481ab0047a0432b61ec226aa7da2e64bdde1 (diff)
downloadpoky-7959e40061978a2e8ac5083f9be3e7e27037d60f.tar.gz
lockfile: ask for forgiveness, not permission
Create the lockfile directory if it doesn't exist, rather than erroring out if it doesn't exist (was also racy). Also improve the wording of the error message shown when the lockfile's directory is not writable. Note for the future, this function should be improved, particularly with regard to its exception handling. It should be catching the *exact* exception(s) it will encounter when the file is locked, and continuing in that case only. If it did that, there'd be no need for the proactive directory writability check, as bb.utils.lockfile() would raise an appropriate IOError for that case. (Bitbake rev: 238151441c74db53d6e4d4753f4f96c32f6f13b6) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-rt')
0 files changed, 0 insertions, 0 deletions