]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake/utils: Ignore OSError in unlockfile
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Jan 2011 14:26:50 +0000 (14:26 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Jan 2011 14:26:50 +0000 (14:26 +0000)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/utils.py

index c6bbae87a49fa7486a87d4a8ff3b394ac1927f45..f2a79bd63025c8f90b29b49867483c917e7dca73 100644 (file)
@@ -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()