]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bin/bitbake: Fix cooker log handling after recent changes
authorRichard Purdie <rpurdie@linux.intel.com>
Sat, 6 Dec 2008 13:13:58 +0000 (13:13 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Sat, 6 Dec 2008 13:13:58 +0000 (13:13 +0000)
bin/bitbake

index b699afbab7fd07e3b937e473085d070a955f3db2..f5eb29a97788aa8d896a34e2de89559022c5849e 100755 (executable)
@@ -133,17 +133,13 @@ Default BBFILES are the .bb files in the current directory.""" )
     # of the UIs (e.g. for DISPLAY, etc.)
     bb.utils.clean_environment()
 
-    cooker.parseConfiguration()
+    cooker.parseCommandLine()
     host = cooker.server.host
     port = cooker.server.port
 
-    # Save a logfile for cooker somewhere
-    t = bb.data.getVar('TMPDIR', cooker.configuration.data, True)
-    if not t:
-       bb.msg.fatal(bb.msg.domain.Build, "TMPDIR not set")
-    t = os.path.join(t, "cooker")
-    bb.mkdirhier(t)
-    cooker_logfile = "%s/log.cooker.%s" % (t, str(os.getpid()))
+    # 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