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:44:29 +0000
commitd07473d2c25ca116c1b16018d7c3d9bbd3a721bb (patch)
tree8d3dfd179da4d20f092e1aa1252a395b6b8b1c1f
parentab3488264b1323a29842d12b575fa7e117115ebc (diff)
downloadast2050-yocto-poky-d07473d2c25ca116c1b16018d7c3d9bbd3a721bb.zip
ast2050-yocto-poky-d07473d2c25ca116c1b16018d7c3d9bbd3a721bb.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. (Bitbake rev: f421ef819f00ac659504d9af41bcc8323422ff8c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 1f55407..f905702 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/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
OpenPOWER on IntegriCloud