From 5cf4bbffc035c3321539903ca15e0401d15b0be2 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 8 Nov 2011 17:49:32 +0000 Subject: [PATCH] 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 --- bitbake/lib/bb/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.7.4