diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-24 14:26:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-24 14:26:50 +0000 |
commit | 74783fec56d6ced1a793b36410233472e7daf445 (patch) | |
tree | 47885ad6e3be059bae5d94adc925abdeb607165a /bitbake | |
parent | a3cb7849452bca9d90a5c806cd47c5a5c1a7e5cc (diff) | |
download | openembedded-core-74783fec56d6ced1a793b36410233472e7daf445.tar.gz openembedded-core-74783fec56d6ced1a793b36410233472e7daf445.tar.bz2 openembedded-core-74783fec56d6ced1a793b36410233472e7daf445.tar.xz openembedded-core-74783fec56d6ced1a793b36410233472e7daf445.zip |
bitbake/utils: Ignore OSError in unlockfile
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index c6bbae87a..f2a79bd63 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py @@ -450,7 +450,7 @@ def unlockfile(lf): # removing the lockfile. Attempt this, ignore failures. fcntl.flock(lf.fileno(), fcntl.LOCK_EX|fcntl.LOCK_NB) os.unlink(lf.name) - except IOError: + except IOError, OSError: pass fcntl.flock(lf.fileno(), fcntl.LOCK_UN) lf.close() |