From patchwork Wed Mar 21 12:55:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 06/17] command.py: Change parseConfigurationFiles API from async to sync Date: Wed, 21 Mar 2012 12:55:10 -0000 From: Dongxiao Xu X-Patchwork-Id: 23993 Message-Id: To: bitbake-devel@lists.openembedded.org parseConfigurationFiles will not cost much time and move it to the CommandSync class. Signed-off-by: Dongxiao Xu --- lib/bb/command.py | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/bb/command.py b/lib/bb/command.py index 1799f1c..febc90f 100644 --- a/lib/bb/command.py +++ b/lib/bb/command.py @@ -186,6 +186,14 @@ class CommandsSync: event = params[0] bb.event.fire(eval(event), command.cooker.configuration.data) + def parseConfigurationFiles(self, command, params): + """ + Parse the configuration files + """ + prefiles = params[0] + postfiles = params[1] + command.cooker.parseConfigurationFiles(prefiles, postfiles) + class CommandsAsync: """ A class of asynchronous commands @@ -350,12 +358,3 @@ class CommandsAsync: command.finishAsyncCommand() compareRevisions.needcache = True - def parseConfigurationFiles(self, command, params): - """ - Parse the configuration files - """ - prefiles = params[0] - postfiles = params[1] - command.cooker.parseConfigurationFiles(prefiles, postfiles) - command.finishAsyncCommand() - parseConfigurationFiles.needcache = False