summaryrefslogtreecommitdiffstats
path: root/bitbake/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 18:00:21 +0100
commit67eaefee29fa31e8862b4f93f606bd3b7a02d5dc (patch)
tree85e5b557e7900dfeb8616db67e33c62eb0fb3318 /bitbake/lib/bb/command.py
parent7bccf59a24cf2a2ddd6ebc3eb8e1a0f58d55513d (diff)
downloadpoky-67eaefee29fa31e8862b4f93f606bd3b7a02d5dc.tar.gz
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>
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r--bitbake/lib/bb/command.py6
1 files changed, 6 insertions, 0 deletions
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:
267 features = params[0] 267 features = params[0]
268 command.cooker.setFeatures(features) 268 command.cooker.setFeatures(features)
269 269
270 def unlockBitbake(self, command, params):
271 """
272 Unlock bitbake.lock file
273 """
274 command.cooker.unlockBitbake()
275
270 # although we change the internal state of the cooker, this is transparent since 276 # although we change the internal state of the cooker, this is transparent since
271 # we always take and leave the cooker in state.initial 277 # we always take and leave the cooker in state.initial
272 setFeatures.readonly = True 278 setFeatures.readonly = True