From 5c845093fc548cd660d4bf61e8ade9d1c7f2609a Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 14 Jan 2010 18:52:43 +0000 Subject: Solidify server class creation Signed-off-by: Richard Purdie --- bin/bitbake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/bitbake') diff --git a/bin/bitbake b/bin/bitbake index b2edcf48f..f03baaaa6 100755 --- a/bin/bitbake +++ b/bin/bitbake @@ -144,7 +144,11 @@ Default BBFILES are the .bb files in the current directory.""" ) configuration.pkgs_to_build = [] configuration.pkgs_to_build.extend(args[1:]) - cooker = bb.cooker.BBCooker(configuration) + # Save a logfile for cooker into the current working directory. When the + # server is daemonized this logfile will be truncated. + cooker_logfile = os.path.join (os.getcwd(), "cooker.log") + + cooker = bb.cooker.BBCooker(configuration, bb.server.xmlrpc) # Clear away any spurious environment variables. But don't wipe the # environment totally. This is necessary to ensure the correct operation @@ -155,10 +159,6 @@ Default BBFILES are the .bb files in the current directory.""" ) host = cooker.server.host port = cooker.server.port - # Save a logfile for cooker into the current working directory. When the - # server is daemonized this logfile will be truncated. - cooker_logfile = os.path.join (os.getcwd(), "cooker.log") - daemonize.createDaemon(cooker.serve, cooker_logfile) del cooker -- cgit 1.2.3-korg