aboutsummaryrefslogtreecommitdiff
path: root/linaro_image_tools/media_create/chroot_utils.py
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2011-04-04 15:43:31 +0200
committerLoïc Minier <lool@dooz.org>2011-04-04 15:43:31 +0200
commit25a91b89df3651e403c6feadd5b4e294e1d1e5a9 (patch)
treed35775dc3f6049a527e414d99a010e0ce905959d /linaro_image_tools/media_create/chroot_utils.py
parent0956b6aad562581fcf086c5602b8850e5b231291 (diff)
Add some message while installing packages in the chroot, and fix the
linaro-hwpack-install message to not mention apt-get.
Diffstat (limited to 'linaro_image_tools/media_create/chroot_utils.py')
-rw-r--r--linaro_image_tools/media_create/chroot_utils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/linaro_image_tools/media_create/chroot_utils.py b/linaro_image_tools/media_create/chroot_utils.py
index 75e9e27..487aa01 100644
--- a/linaro_image_tools/media_create/chroot_utils.py
+++ b/linaro_image_tools/media_create/chroot_utils.py
@@ -73,7 +73,8 @@ def install_hwpack(chroot_dir, hwpack_file, hwpack_force_yes):
hwpack_basename = os.path.basename(hwpack_file)
copy_file(hwpack_file, chroot_dir)
print "-" * 60
- print "Installing (apt-get) %s in target rootfs." % hwpack_basename
+ print "Installing (linaro-hwpack-install) %s in target rootfs." % (
+ hwpack_basename)
args = ['linaro-hwpack-install']
if hwpack_force_yes:
args.append('--force-yes')
@@ -90,8 +91,11 @@ def install_packages(chroot_dir, tmp_dir, *packages):
try:
mount_chroot_proc(chroot_dir)
+ print "-" * 60
+ print "Installing (apt-get) %s in target rootfs." % " ".join(packages)
args = ("apt-get", "--yes", "install") + packages
cmd_runner.run(args, as_root=True, chroot=chroot_dir).wait()
+ print "-" * 60
finally:
run_local_atexit_funcs()