Fix some more pep8 errors

This commit is contained in:
Anders Ingemann 2015-02-22 16:49:52 +01:00
parent f48d392df8
commit 31d61e778b
2 changed files with 3 additions and 6 deletions

View file

@ -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:

View file

@ -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'])