poky/bitbake
Chris Larson 7959e40061 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>
2011-05-04 15:43:26 -07:00
..
bin bitbake/bitbake-layers: fix to run with recent changes 2011-03-14 17:41:46 -07:00
contrib vim: properly highlight python inside of ${@} 2011-01-10 22:10:41 +00:00
doc manual: document scmdata=keep for CVS, SVN and Git 2011-01-04 14:46:51 +00:00
lib lockfile: ask for forgiveness, not permission 2011-05-04 15:43:26 -07:00
AUTHORS misc: Update the email address to a working one. 2011-01-04 14:36:54 +00:00
ChangeLog *: Fix typo in documentation 2010-08-04 16:12:39 +01:00
COPYING bitbake: Sync with upstream. 2007-01-08 23:53:01 +00:00
HEADER bitbake: Sync with upstream. 2007-01-08 23:53:01 +00:00