[bitbake-devel] [PATCH 3/7] command: make setEventMask readonly

brian avery avery.brian at gmail.com
Thu Mar 3 06:47:40 UTC 2016


From: Ed Bartosh <ed.bartosh at linux.intel.com>

Executing setEventMask command when bitbake server is in readonly
mode causes runCommand to fail with the following error:
 'Not able to execute not readonly commands in readonly mode'

Set readonly attribute for setEventMask command to make it working
for Toaster UI. This should not do any harm as this command doesn't
influence cooker state.

Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: brian avery <avery.brian at gmail.com>
---
 lib/bb/command.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/bb/command.py b/lib/bb/command.py
index 74106d1..0559ffc 100644
--- a/lib/bb/command.py
+++ b/lib/bb/command.py
@@ -279,6 +279,7 @@ class CommandsSync:
         mask = params[3]
         return bb.event.set_UIHmask(handlerNum, llevel, debug_domains, mask)
     setEventMask.needconfig = False
+    setEventMask.readonly = True
 
     def setFeatures(self, command, params):
         """
-- 
1.9.1




More information about the bitbake-devel mailing list