From 67eaefee29fa31e8862b4f93f606bd3b7a02d5dc Mon Sep 17 00:00:00 2001 From: Leonardo Sandoval Date: Tue, 7 Jul 2015 09:46:00 +0000 Subject: bitbake: command.py: Unlock function included into CommandsSync class Function which calls cooker's unlock method, which in turn unlocks bitbake.lock file. (Bitbake rev: e97a9f1528d77503b5c93e48e3de9933fbb9f3cd) Signed-off-by: Leonardo Sandoval Signed-off-by: Richard Purdie --- bitbake/lib/bb/command.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 24ff341045..2b02584b5e 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py @@ -267,6 +267,12 @@ class CommandsSync: features = params[0] command.cooker.setFeatures(features) + def unlockBitbake(self, command, params): + """ + Unlock bitbake.lock file + """ + command.cooker.unlockBitbake() + # although we change the internal state of the cooker, this is transparent since # we always take and leave the cooker in state.initial setFeatures.readonly = True -- cgit v1.2.3-54-g00ecf