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

The `AddBackports` task is needed by many different plugins, so is better if it is available as a common task. This closes #96.
16 lines
473 B
Python
16 lines
473 B
Python
from bootstrapvz.base import Task
|
|
from bootstrapvz.common.tasks import apt
|
|
from bootstrapvz.common import phases
|
|
|
|
|
|
class AddONEContextPackage(Task):
|
|
description = 'Adding the OpenNebula context package'
|
|
phase = phases.preparation
|
|
predecessors = [apt.AddDefaultSources, apt.AddBackports]
|
|
|
|
@classmethod
|
|
def run(cls, info):
|
|
target = None
|
|
if info.release_codename == 'wheezy':
|
|
target = '{system.release}-backports'
|
|
info.packages.add('opennebula-context', target)
|