diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-04-01 12:24:49 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-01 12:53:16 +0100 |
commit | f0a1a3e24757f7658d272035620465f92a3e4c3c (patch) | |
tree | f08b4c8c78a700469c3bce980bbd480de8c57fe7 /lib/bb/command.py | |
parent | 1a0defce1499fdc320bcb27b41e06bea2ca2aef2 (diff) | |
download | bitbake-f0a1a3e24757f7658d272035620465f92a3e4c3c.tar.gz |
bitbake: cooker: mark setFeatures command as read-only
This patch makes sure that the setFeatures command is marked
as read-only and that it can only run if the cooker is in
the initial state.
Additionally, remove logging from the XMLRPC module in favor
of sending the exception to the client for easy processing.
[YOCTO #6089]
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/command.py')
-rw-r--r-- | lib/bb/command.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py index 378820712..84fcdf943 100644 --- a/lib/bb/command.py +++ b/lib/bb/command.py @@ -264,6 +264,10 @@ class CommandsSync: features = params[0] command.cooker.setFeatures(features) + # 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 + class CommandsAsync: """ A class of asynchronous commands |