Builder: fix make install with schroot
authorSam Hartman <hartmans@painless-security.com>
Fri, 13 Jan 2012 17:00:12 +0000 (12:00 -0500)
committerSam Hartman <hartmans@painless-security.com>
Fri, 13 Jan 2012 17:00:12 +0000 (12:00 -0500)
builder

diff --git a/builder b/builder
index 576ee2f..5d0ac73 100755 (executable)
--- a/builder
+++ b/builder
@@ -153,8 +153,9 @@ if tar_file is not None: dist = True
 our_schroot = None
 if options.schroot is not None:
     our_schroot = Schroot(options.schroot)
-    schroot_command = "schroot -r -c " + our_schroot.name + ' --'
-    root_command = schroot_command + " -u root"
+    schroot_command_base = "schroot -r -c " + our_schroot.name
+    root_command = schroot_command_base + " -u root --"
+    schroot_command = schroot_command_base + ' --'
 
 all_packages = read_packages()
 if len(packages) == 0: packages = all_packages