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,
|
log_check_call(['chroot', info.root,
|
||||||
'apt-get', 'install',
|
'apt-get', 'install',
|
||||||
'--no-install-recommends',
|
'--no-install-recommends',
|
||||||
'--assume-yes']
|
'--assume-yes'] + map(str, remote_packages),
|
||||||
+ map(str, remote_packages),
|
|
||||||
env=env)
|
env=env)
|
||||||
except CalledProcessError as e:
|
except CalledProcessError as e:
|
||||||
import logging
|
import logging
|
||||||
|
@ -91,8 +90,7 @@ class InstallPackages(Task):
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env['DEBIAN_FRONTEND'] = 'noninteractive'
|
env['DEBIAN_FRONTEND'] = 'noninteractive'
|
||||||
log_check_call(['chroot', info.root,
|
log_check_call(['chroot', info.root,
|
||||||
'dpkg', '--install']
|
'dpkg', '--install'] + chrooted_package_paths,
|
||||||
+ chrooted_package_paths,
|
|
||||||
env=env)
|
env=env)
|
||||||
|
|
||||||
for path in absolute_package_paths:
|
for path in absolute_package_paths:
|
||||||
|
|
|
@ -144,8 +144,7 @@ class PackageBox(Task):
|
||||||
box_files = os.listdir(info._vagrant['folder'])
|
box_files = os.listdir(info._vagrant['folder'])
|
||||||
log_check_call(['tar', '--create', '--gzip', '--dereference',
|
log_check_call(['tar', '--create', '--gzip', '--dereference',
|
||||||
'--file', info._vagrant['box_path'],
|
'--file', info._vagrant['box_path'],
|
||||||
'--directory', info._vagrant['folder']]
|
'--directory', info._vagrant['folder']] + box_files
|
||||||
+ box_files
|
|
||||||
)
|
)
|
||||||
import logging
|
import logging
|
||||||
logging.getLogger(__name__).info('The vagrant box has been placed at ' + info._vagrant['box_path'])
|
logging.getLogger(__name__).info('The vagrant box has been placed at ' + info._vagrant['box_path'])
|
||||||
|
|
Loading…
Add table
Reference in a new issue