summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-08 17:49:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-10 11:39:20 +0000
commitf421ef819f00ac659504d9af41bcc8323422ff8c (patch)
tree41d90748348165ce32b6d03223b3a113dbcef5fb
parente724b9f417d1baf898f5afc6376c73c1a2ad8db9 (diff)
downloadbitbake-f421ef819f00ac659504d9af41bcc8323422ff8c.tar.gz
utils.py: Fix lockfile retry handling
The lockfile retry parameter is expected to return immediately after attempting to take the lock. There was a bug in the logic which this patch fixed to ensure it does that. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index 1f5540716..f9057020f 100644
--- a/lib/bb/utils.py
+++ b/lib/bb/utils.py
@@ -443,7 +443,7 @@ def lockfile(name, shared=False, retry=True):
return lf
lf.close()
except Exception:
- continue
+ pass
if not retry:
return None