diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-05-23 01:02:55 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-05-23 01:02:55 (GMT) |
commit | cc56023153057a187d62ea6937a67fba8e1844ca (patch) | |
tree | 6755223899a32a0a0f0e77f06eec730c53d1cd1f | |
parent | b67fb0add9bf865ae17f72fe7a95249d78145c20 (diff) |
Fix logs path
-rw-r--r-- | builders.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/builders.py b/builders.py index 2b23311..a6ab470 100644 --- a/builders.py +++ b/builders.py @@ -27,6 +27,8 @@ class PullCommand(ShellCommand): def create_factory(config, env={}, full=False, upload_docs=False): + log_path = "build/logs/sugar-build.log" + factory = BuildFactory() factory.addStep(Git(repourl=config["repo"], @@ -45,13 +47,13 @@ def create_factory(config, env={}, full=False, upload_docs=False): description="checking system", descriptionDone="check system", warnOnFailure=True, - logfiles={"log": "build/logs/build.log"}, + logfiles={"log": log_path}, env=env)) factory.addStep(PullCommand(description="pulling", descriptionDone="pull", haltOnFailure=True, - logfiles={"log": "build/logs/build.log"}, + logfiles={"log": log_path}, env=env)) command = ["./osbuild", "build"] @@ -62,21 +64,21 @@ def create_factory(config, env={}, full=False, upload_docs=False): description="building", descriptionDone="build", haltOnFailure=True, - logfiles={"log": "build/logs/build.log"}, + logfiles={"log": log_path}, env=env)) factory.addStep(ShellCommand(command=["./osbuild", "check"], description="checking", descriptionDone="check", haltOnFailure=True, - logfiles={"log": "build/logs/build.log"}, + logfiles={"log": log_path}, env=env)) factory.addStep(ShellCommand(command=["./osbuild", "docs"], description="docs", descriptionDone="docs", haltOnFailure=True, - logfiles={"log": "build/logs/build.log"}, + logfiles={"log": log_path}, env=env)) if upload_docs: |