Cosmetic changes for better debugging
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org>
diff --git a/build_images.py b/build_images.py
index be77fff..567f4d0 100755
--- a/build_images.py
+++ b/build_images.py
@@ -90,13 +90,13 @@
return dfile
def compress_image(imgfile):
- print "compressing %s" % imgfile
+ print "INFO: compressing %s" % imgfile
args = ('bzip2', imgfile)
cmd_runner.run(args).wait()
return '%s.bz2' % imgfile
def zsync_image(imgfile):
- print "making zsync file for %s" % imgfile
+ print "INFO: making zsync file for %s" % imgfile
args = ('zsyncmake', '-o', '%s.zsync'%imgfile, imgfile)
cmd_runner.run(args).wait()
@@ -112,7 +112,7 @@
def create_image_info(infofile, bz2file, binary_file, hwpack_url, rootfs_url):
''' prints out the md5sum and hwpack/rootfs info for the given image
'''
- print "building image info for: %s" % bz2file
+ print "INFO: building image info for: %s" % bz2file
md5 = md5sum(bz2file)
binary_file = os.path.basename(binary_file)
@@ -154,11 +154,10 @@
f.write(buff)
def build_image(lmc, imgfile, hwpack, hwpack_file, binary, binary_file):
- print "building image: %s" % imgfile
+ print "INFO: building image: %s" % imgfile
hwpi = HWPACKS[hwpack]
size = BINARIES[binary]
- print 'running l-m-c: %s' % lmc
args = [lmc,
'--dev', hwpi.lmcname,
'--image_file', imgfile,
@@ -175,6 +174,8 @@
args.append('--preinstall-script')
args.append(script)
+ print "INFO: running l-m-c:", " ".join([str(arg) for arg in args])
+
hwpi.do_eula(imgfile)
cmd_runner.run(args, as_root=True).wait()