]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
command: make setEventMask readonly
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 3 Mar 2016 06:47:40 +0000 (22:47 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Mar 2016 17:21:07 +0000 (17:21 +0000)
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@linux.intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/command.py

index 74106d14344251ffe7b75627f710c08a3840f8f7..0559ffc07cbf663eb1ae675cf32acc95e5a1d348 100644 (file)
@@ -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):
         """