From a1de071656261bb3e488c373cc8b6e9e62bf1a6c Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 14 Jun 2007 12:12:57 +0200 Subject: * aptsources/sourceslist.py: - merge missing fix from ubuntu branch --- aptsources/sourceslist.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'aptsources') 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 \ -- cgit v1.2.3