From d754e704d6e42bff9f1f8485e134fd4d04cb3a24 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 6 Sep 2006 13:37:56 +0200 Subject: * tests/test_aptsources.py: - added another test for the "Distribution()" class --- UpdateManager/Common/aptsources.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'UpdateManager') diff --git a/UpdateManager/Common/aptsources.py b/UpdateManager/Common/aptsources.py index f8ce474b..8963fd15 100644 --- a/UpdateManager/Common/aptsources.py +++ b/UpdateManager/Common/aptsources.py @@ -635,12 +635,15 @@ class Distribution: def enable_component(self, sourceslist, comp): """ - Disable a component in all main, child and source code sources + Enable a component in all main, child and source code sources (excluding cdrom based sources) sourceslist: an aptsource.sources_list comp: the component that should be enabled """ + # FIXME: we can't just unconditionally add stuff to each line, + # otherwise we need up with multiple components for the + # same repository (see tests/test_aptsources.py for details) sources = [] sources.extend(self.main_sources) sources.extend(self.child_sources) -- cgit v1.2.3