From a7d1b0dd42e27785636db09b94a8fed834edebab Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 26 Sep 2006 23:34:28 +0200 Subject: * UpdateManager/Common/aptsources.py: - use self.source_code_sources when enabling a component * DistUpgrade/DistUpgradeControler.py: - make sure to enable restricted as well otherwise the kernel won't upgrade --- DistUpgrade/DistUpgradeControler.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'DistUpgrade') diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py index 56ec7f08..ad4e5335 100644 --- a/DistUpgrade/DistUpgradeControler.py +++ b/DistUpgrade/DistUpgradeControler.py @@ -165,7 +165,12 @@ class DistUpgradeControler(object): # enable main (we always need this!) distro = Distribution() distro.get_sources(self.sources) + # we need both main + restricted for a real upgrade + # restricted is required for the kernel upgrade (otherwise + # it will just keep the kernel because linux-$arch depends on + # linux-restricted-modules from restricted) distro.enable_component(self.sources, "main") + distro.enable_component(self.sources, "restricted") # this must map, i.e. second in "from" must be the second in "to" # (but they can be different, so in theory we could exchange -- cgit v1.2.3