mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Fix some more pep8 errors
This commit is contained in:
parent
f48d392df8
commit
31d61e778b
2 changed files with 3 additions and 6 deletions
|
@ -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:
|
||||
|
|
|
@ -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'])
|
||||
|
|
Loading…
Add table
Reference in a new issue