This email list is read-only. Emails sent to this list will be discarded
----------------------------------
bitbake-dev/lib/bb/command.py | 11 ++++++++++-
bitbake-dev/lib/bb/ui/knotty.py | 4 ++--
2 files changed, 12 insertions(+), 3 deletions(-)
New commits:
commit 08197d62efb5e7cbf92d3fbf94a6d192a311214c
Merge: fbfc669583328a6df2415ecc6343bba509e44459
e84e951822687dd7a2e2c632ac9caa799ddfd593
Author: Rob Bradford <[EMAIL PROTECTED]>
Date: Fri Oct 24 14:46:07 2008 +0100
Merge branch 'master' of ssh://[EMAIL PROTECTED]/poky
commit fbfc669583328a6df2415ecc6343bba509e44459
Author: Rob Bradford <[EMAIL PROTECTED]>
Date: Fri Oct 24 14:44:30 2008 +0100
bitbake-dev: add a setVariable command
This is synonymous with the getVariable command and allows you to set values
in the data dictionary.
commit 87fe772b8a208d3366be9ab3b605b2e8edda6b50
Author: Rob Bradford <[EMAIL PROTECTED]>
Date: Thu Oct 23 14:58:36 2008 +0100
bitbake-dev: rename readVariable to getVariable
Changing the name of this command makes it more consistent with other
command
names.
Diff in this email is a maximum of 400 lines.
diff --git a/bitbake-dev/lib/bb/command.py b/bitbake-dev/lib/bb/command.py
index 7cee1d5..0d4ef42 100644
--- a/bitbake-dev/lib/bb/command.py
+++ b/bitbake-dev/lib/bb/command.py
@@ -114,7 +114,7 @@ class CommandsSync:
"""
return command.cooker.commandlineAction
- def readVariable(self, command, params):
+ def getVariable(self, command, params):
"""
Read the value of a variable from configuration.data
"""
@@ -125,6 +125,15 @@ class CommandsSync:
return bb.data.getVar(varname, command.cooker.configuration.data,
expand)
+ def setVariable(self, command, params):
+ """
+ Set the value of variable in configuration.data
+ """
+ varname = params[0]
+ value = params[1]
+ bb.data.setVar(varname, value, command.cooker.configuration.data)
+
+
class CommandsAsync:
"""
A class of asynchronous commands
diff --git a/bitbake-dev/lib/bb/ui/knotty.py b/bitbake-dev/lib/bb/ui/knotty.py
index 5e7544e..4b4d6b0 100644
--- a/bitbake-dev/lib/bb/ui/knotty.py
+++ b/bitbake-dev/lib/bb/ui/knotty.py
@@ -32,8 +32,8 @@ parsespin = itertools.cycle( r'|/-\\' )
def init(server, eventHandler):
# Get values of variables which control our output
- includelogs = server.runCommand(["readVariable", "BBINCLUDELOGS"])
- loglines = server.runCommand(["readVariable", "BBINCLUDELOGS_LINES"])
+ includelogs = server.runCommand(["getVariable", "BBINCLUDELOGS"])
+ loglines = server.runCommand(["getVariable", "BBINCLUDELOGS_LINES"])
try:
cmdline = server.runCommand(["getCmdLineAction"])
_______________________________________________
Commits mailing list
[email protected]
https://lists.moblin.org/mailman/listinfo/commits