2014-03-23 23:12:07 +01:00
|
|
|
from bootstrapvz.base import Task
|
|
|
|
from bootstrapvz.common.tasks import apt
|
|
|
|
from bootstrapvz.common import phases
|
2013-08-10 17:43:15 +02:00
|
|
|
|
2013-12-29 23:21:50 +01:00
|
|
|
|
2014-03-25 14:32:49 +01:00
|
|
|
class AddONEContextPackage(Task):
|
2016-06-04 11:35:59 +02:00
|
|
|
description = 'Adding the OpenNebula context package'
|
|
|
|
phase = phases.preparation
|
|
|
|
predecessors = [apt.AddBackports]
|
2013-08-10 17:43:15 +02:00
|
|
|
|
2016-06-04 11:35:59 +02:00
|
|
|
@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)
|