diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-06 13:37:56 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-06 13:37:56 +0200 |
| commit | d754e704d6e42bff9f1f8485e134fd4d04cb3a24 (patch) | |
| tree | cee5ed5bbc75cedd1de1fbc141a0a132ec834612 /UpdateManager | |
| parent | eafcfb0385b7183f8ad02b4d258549975ed5e350 (diff) | |
| download | python-apt-d754e704d6e42bff9f1f8485e134fd4d04cb3a24.tar.gz | |
* tests/test_aptsources.py:
- added another test for the "Distribution()" class
Diffstat (limited to 'UpdateManager')
| -rw-r--r-- | UpdateManager/Common/aptsources.py | 5 |
1 files changed, 4 insertions, 1 deletions
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) |
