aboutsummaryrefslogtreecommitdiff
path: root/node/prepare_build_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'node/prepare_build_config.py')
-rwxr-xr-xnode/prepare_build_config.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/node/prepare_build_config.py b/node/prepare_build_config.py
index 7188a10..3086453 100755
--- a/node/prepare_build_config.py
+++ b/node/prepare_build_config.py
@@ -8,6 +8,9 @@ import pipes
SLAVE_TYPE_FILE = "/var/run/build-tools/slave-type"
SLAVE_TYPE_RESTRICTED = "Natty Release 64bit Instance Store - private builds"
+# sf-safe build config is written to this file
+BUILD_CONFIG_FILE = "/var/run/build-tools/build-config"
+
class BuildConfigMismatchException(Exception):
pass
@@ -64,7 +67,7 @@ def validate_config(config, slave_type):
def convert_config_to_shell(config_text):
config = {}
- out = open("build_config", "w")
+ out = open(BUILD_CONFIG_FILE, "w")
for l in cfg.split("\n"):
l = l.strip()
@@ -77,6 +80,7 @@ def convert_config_to_shell(config_text):
val = shell_unquote(val)
config[var] = val
print "%s=%s" % (var, pipes.quote(val))
+ out.close()
if __name__ == "__main__":