aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/command.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-03-02 22:47:40 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-07 17:21:07 +0000
commit8a47d30b2555255fbf6049c5ed69b29664c32b17 (patch)
tree4616a64a982ef7d59f2150a0a6b689864a264c6f /lib/bb/command.py
parent16b14ec16049cc2040a60ad5fc95f6e19dda91a6 (diff)
downloadbitbake-contrib-8a47d30b2555255fbf6049c5ed69b29664c32b17.tar.gz
command: make setEventMask readonly
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>
Diffstat (limited to 'lib/bb/command.py')
-rw-r--r--lib/bb/command.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py
index 74106d143..0559ffc07 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):
"""