1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

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 <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Leonardo Sandoval
2015-07-07 09:46:00 +00:00
committed by Richard Purdie
parent 7bccf59a24
commit 67eaefee29
+6
View File
@@ -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