mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00

This allows code that runs before the bootstrapinformation object has been created to also figure out the release codename
8 lines
242 B
Python
8 lines
242 B
Python
import tasks
|
|
|
|
|
|
def resolve_tasks(taskset, manifest):
|
|
from bootstrapvz.common.tools import get_codename
|
|
if get_codename(manifest.system['release']) == 'wheezy':
|
|
taskset.add(tasks.AddBackports)
|
|
taskset.update([tasks.AddONEContextPackage])
|