diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-06-14 12:12:57 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-06-14 12:12:57 +0200 |
| commit | a1de071656261bb3e488c373cc8b6e9e62bf1a6c (patch) | |
| tree | 20206099df6c4676e5c522965851d9feec0dd10f /aptsources | |
| parent | 204ba672314d9ed07ca76770a32a6af5fbd67c25 (diff) | |
| download | python-apt-a1de071656261bb3e488c373cc8b6e9e62bf1a6c.tar.gz | |
* aptsources/sourceslist.py:
- merge missing fix from ubuntu branch
Diffstat (limited to 'aptsources')
| -rw-r--r-- | aptsources/sourceslist.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/aptsources/sourceslist.py b/aptsources/sourceslist.py index 16784ec4..e0f32f8d 100644 --- a/aptsources/sourceslist.py +++ b/aptsources/sourceslist.py @@ -254,12 +254,9 @@ class SourcesList: The method will search for existing matching repos and will try to reuse them as far as possible """ - - # create a working copy of the component list so that we can modify it later - # FIXME: perhaps could be done in a prittier way - comps = [] - for c in orig_comps: - comps.append(c) + # create a working copy of the component list so that + # we can modify it later + comps = orig_comps[:] # check if we have this source already in the sources.list for source in self.list: if source.disabled == False and source.invalid == False and \ |
