chiark / gitweb /
Better makebuildserver verbose output
authorCiaran Gultnieks <ciaran@ciarang.com>
Thu, 9 Jan 2014 21:31:58 +0000 (21:31 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 9 Jan 2014 21:56:51 +0000 (22:56 +0100)
(and always delete box file, its always there, despite my earlier commit
saying it wasn't)

makebuildserver

index 96443a72ccfa900336b771c15d331e16fa38ce83..adaacc4fc8c70900710c4fa19a51827cb4a2684d 100755 (executable)
@@ -209,12 +209,11 @@ while not ready:
                 print "Status: " + line
 
 print "Packaging"
-vagrant(['package', '--output', os.path.join('..', boxfile)], serverdir)
+vagrant(['package', '--output', os.path.join('..', boxfile)], serverdir,
+        printout=options.verbose)
 print "Adding box"
-vagrant(['box', 'add', 'buildserver', boxfile, '-f'])
+vagrant(['box', 'add', 'buildserver', boxfile, '-f'],
+        printout=options.verbose)
 
-# Remove box file if it exists (older vagrant versions left it there, newer
-# ones seem to delete it
-if os.path.exists(boxfile):
-    os.remove(boxfile)
+os.remove(boxfile)