]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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, 21 Feb 2011 13:25:13 +0000 (13:25 +0000)
(From Poky rev: 74783fec56d6ced1a793b36410233472e7daf445)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/utils.py

index 343b2586aa97d780e09e2595c12ce22df361112e..7e19da466d532964899ee69a498a62b0dbb1faad 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()