aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/command.py
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2015-07-07 09:46:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-09 17:59:29 +0100
commite97a9f1528d77503b5c93e48e3de9933fbb9f3cd (patch)
treef44b799f902a2a911f1ee73554139e0610fcc2af /lib/bb/command.py
parentd66dccf9f9a33bfef5c28cc1c767bfc89faee532 (diff)
downloadbitbake-e97a9f1528d77503b5c93e48e3de9933fbb9f3cd.tar.gz
command.py: Unlock function included into CommandsSync class
Function which calls cooker's unlock method, which in turn unlocks bitbake.lock file. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/command.py')
-rw-r--r--lib/bb/command.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py
index 24ff34104..2b02584b5 100644
--- a/lib/bb/command.py
+++ b/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