]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake-dev: rename readVariable to getVariable
authorRob Bradford <rob@linux.intel.com>
Thu, 23 Oct 2008 13:58:36 +0000 (14:58 +0100)
committerRob Bradford <rob@linux.intel.com>
Thu, 23 Oct 2008 13:58:36 +0000 (14:58 +0100)
Changing the name of this command makes it more consistent with other command
names.

bitbake-dev/lib/bb/command.py
bitbake-dev/lib/bb/ui/knotty.py

index 7cee1d5d36d2a4e2a5fda39831476b2c34e8c4ce..293202be546b118b6aa5bd0769028493c1a7ea98 100644 (file)
@@ -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
         """
index 5e7544ea03138a574e325c4915a028d0e7f70dff..4b4d6b03afa931acc5f3ab0db2ec00bc142d66c2 100644 (file)
@@ -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"])