diff --git a/bootstrapvz/common/tasks/packages.py b/bootstrapvz/common/tasks/packages.py index 602a2a0..a5b41b0 100644 --- a/bootstrapvz/common/tasks/packages.py +++ b/bootstrapvz/common/tasks/packages.py @@ -49,8 +49,7 @@ class InstallPackages(Task): log_check_call(['chroot', info.root, 'apt-get', 'install', '--no-install-recommends', - '--assume-yes'] - + map(str, remote_packages), + '--assume-yes'] + map(str, remote_packages), env=env) except CalledProcessError as e: import logging @@ -91,8 +90,7 @@ class InstallPackages(Task): env = os.environ.copy() env['DEBIAN_FRONTEND'] = 'noninteractive' log_check_call(['chroot', info.root, - 'dpkg', '--install'] - + chrooted_package_paths, + 'dpkg', '--install'] + chrooted_package_paths, env=env) for path in absolute_package_paths: diff --git a/bootstrapvz/plugins/vagrant/tasks.py b/bootstrapvz/plugins/vagrant/tasks.py index c98f0f2..1810146 100644 --- a/bootstrapvz/plugins/vagrant/tasks.py +++ b/bootstrapvz/plugins/vagrant/tasks.py @@ -144,8 +144,7 @@ class PackageBox(Task): box_files = os.listdir(info._vagrant['folder']) log_check_call(['tar', '--create', '--gzip', '--dereference', '--file', info._vagrant['box_path'], - '--directory', info._vagrant['folder']] - + box_files + '--directory', info._vagrant['folder']] + box_files ) import logging logging.getLogger(__name__).info('The vagrant box has been placed at ' + info._vagrant['box_path'])