mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Compare with "unstable" instead of "sid"
This commit is contained in:
parent
71c7d445ad
commit
f1ce582994
1 changed files with 2 additions and 2 deletions
|
@ -46,11 +46,11 @@ class AddBackports(Task):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def run(cls, info):
|
def run(cls, info):
|
||||||
from bootstrapvz.common.releases import sid
|
from bootstrapvz.common.releases import unstable
|
||||||
if info.source_lists.target_exists('{system.release}-backports'):
|
if info.source_lists.target_exists('{system.release}-backports'):
|
||||||
msg = ('{system.release}-backports target already exists').format(**info.manifest_vars)
|
msg = ('{system.release}-backports target already exists').format(**info.manifest_vars)
|
||||||
logging.getLogger(__name__).info(msg)
|
logging.getLogger(__name__).info(msg)
|
||||||
elif info.manifest.release == sid:
|
elif info.manifest.release == unstable:
|
||||||
logging.getLogger(__name__).info('There are no backports for sid/unstable')
|
logging.getLogger(__name__).info('There are no backports for sid/unstable')
|
||||||
else:
|
else:
|
||||||
info.source_lists.add('backports', 'deb {apt_mirror} {system.release}-backports main')
|
info.source_lists.add('backports', 'deb {apt_mirror} {system.release}-backports main')
|
||||||
|
|
Loading…
Add table
Reference in a new issue