mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
17 lines
520 B
Python
17 lines
520 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
|
|
from bootstrapvz.common.releases import wheezy
|
|
if info.manifest.release == wheezy:
|
|
target = '{system.release}-backports'
|
|
info.packages.add('opennebula-context', target)
|