summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
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 /bitbake/lib
parentab3488264b1323a29842d12b575fa7e117115ebc (diff)
downloadpoky-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>
Diffstat (limited to 'bitbake/lib')
-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 1f5540716a..f9057020fe 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -443,7 +443,7 @@ def lockfile(name, shared=False, retry=True):
443 return lf 443 return lf
444 lf.close() 444 lf.close()
445 except Exception: 445 except Exception:
446 continue 446 pass
447 if not retry: 447 if not retry:
448 return None 448 return None
449 449