[bitbake-devel] [PATCH 2/3] command.py: Unlock function included into CommandsSync class

leonardo.sandoval.gonzalez at linux.intel.com leonardo.sandoval.gonzalez at linux.intel.com
Tue Jul 7 09:46:00 UTC 2015


From: Leonardo Sandoval <leonardo.sandoval.gonzalez at linux.intel.com>

Function which calls cooker's unlock method, which in turn unlocks bitbake.lock
file.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez at linux.intel.com>
---
 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 24ff341..2b02584 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
-- 
1.8.4.5




More information about the bitbake-devel mailing list