Fix task ordering to better support customizations

This ensures that preferences are written before apt update and also ensures
that in GCE the backports are added to the sources before the provider-specific
SetPackageRepositories happens.

Change-Id: I3c85f922c49c2a6fbd3c0f2bad1072eff0d098c8
This commit is contained in:
Rick Wright 2014-09-05 13:56:50 -07:00
parent 89a74a33c8
commit 96a1683c26
2 changed files with 2 additions and 2 deletions

View file

@ -128,7 +128,7 @@ class DisableDaemonAutostart(Task):
class AptUpdate(Task):
description = 'Updating the package cache'
phase = phases.package_installation
predecessors = [locale.GenerateLocale, WriteSources]
predecessors = [locale.GenerateLocale, WriteSources, WritePreferences]
@classmethod
def run(cls, info):

View file

@ -9,7 +9,7 @@ import os
class SetPackageRepositories(Task):
description = 'Adding apt sources'
phase = phases.preparation
predecessors = [apt.AddManifestSources]
predecessors = [apt.AddManifestSources, apt.AddBackports]
@classmethod
def run(cls, info):