mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Fix fetching of packages.components
Add update from master
This commit is contained in:
parent
60d51834c1
commit
16b394d135
1 changed files with 4 additions and 6 deletions
|
@ -23,14 +23,12 @@ class AddDefaultSources(Task):
|
|||
|
||||
@classmethod
|
||||
def run(cls, info):
|
||||
components = 'main'
|
||||
if 'components' in info.manifest.system:
|
||||
components = ' '.join(info.manifest.system['components'])
|
||||
components = ' '.join(info.manifest.packages.get('components', ['main']))
|
||||
info.source_lists.add('main', 'deb {apt_mirror} {system.release} ' + components)
|
||||
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release} ' + components)
|
||||
info.source_lists.add('main', 'deb http://security.debian.org/ {system.release}/updates ' + components)
|
||||
info.source_lists.add('main', 'deb-src http://security.debian.org/ {system.release}/updates ' + components)
|
||||
if info.manifest.system['release'] not in {'testing', 'unstable'}:
|
||||
if info.release_codename != 'sid':
|
||||
info.source_lists.add('main', 'deb http://security.debian.org/ {system.release}/updates ' + components)
|
||||
info.source_lists.add('main', 'deb-src http://security.debian.org/ {system.release}/updates ' + components)
|
||||
info.source_lists.add('main', 'deb {apt_mirror} {system.release}-updates ' + components)
|
||||
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release}-updates ' + components)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue