mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-07 17:40:30 +00:00
PEP8 compliance
This commit is contained in:
parent
46dbe9e8c6
commit
ff968c3869
3 changed files with 8 additions and 8 deletions
|
@ -4,9 +4,9 @@ class Bytes(object):
|
|||
|
||||
units = {'B': 1,
|
||||
'KiB': 1024,
|
||||
'MiB': 1024*1024,
|
||||
'GiB': 1024*1024*1024,
|
||||
'TiB': 1024*1024*1024*1024,
|
||||
'MiB': 1024 * 1024,
|
||||
'GiB': 1024 * 1024 * 1024,
|
||||
'TiB': 1024 * 1024 * 1024 * 1024,
|
||||
}
|
||||
|
||||
def __init__(self, qty):
|
||||
|
|
|
@ -26,11 +26,11 @@ class AddDefaultSources(Task):
|
|||
sections = 'main'
|
||||
if 'sections' in info.manifest.system:
|
||||
sections = ' '.join(info.manifest.system['sections'])
|
||||
info.source_lists.add('main', 'deb {apt_mirror} {system.release} '+sections)
|
||||
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release} '+sections)
|
||||
info.source_lists.add('main', 'deb {apt_mirror} {system.release} ' + sections)
|
||||
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release} ' + sections)
|
||||
if info.manifest.system['release'] not in {'testing', 'unstable'}:
|
||||
info.source_lists.add('main', 'deb {apt_mirror} {system.release}-updates '+sections)
|
||||
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release}-updates '+sections)
|
||||
info.source_lists.add('main', 'deb {apt_mirror} {system.release}-updates ' + sections)
|
||||
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release}-updates ' + sections)
|
||||
|
||||
|
||||
class InstallTrustedKeys(Task):
|
||||
|
|
|
@ -13,4 +13,4 @@ class VirtIO(Task):
|
|||
with open(modules, "a") as modules_file:
|
||||
modules_file.write("\n")
|
||||
for module in info.manifest.bootstrapper.get('virtio', []):
|
||||
modules_file.write(module+"\n")
|
||||
modules_file.write(module + "\n")
|
||||
|
|
Loading…
Add table
Reference in a new issue