diff options
| author | sampo555 <sampo_75@windowslive.com> | 2012-08-31 22:00:36 +0300 |
|---|---|---|
| committer | sampo555 <sampo_75@windowslive.com> | 2012-08-31 22:00:36 +0300 |
| commit | 58ec5e4ea6c4e07a62611d0b588638688c42899b (patch) | |
| tree | d7f0c67560f3ebdbeebbcf287ae726f7f471b24c /aptsources/sourceslist.py | |
| parent | a8290b2bd58aa4a75eeab34145daa4079b450533 (diff) | |
| download | python-apt-58ec5e4ea6c4e07a62611d0b588638688c42899b.tar.gz | |
Enable disabled repository instead of adding a new entry if a duplicate disabled entry already exists (LP: #1042916).
Diffstat (limited to 'aptsources/sourceslist.py')
| -rw-r--r-- | aptsources/sourceslist.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aptsources/sourceslist.py b/aptsources/sourceslist.py index 61b75f75..40902d84 100644 --- a/aptsources/sourceslist.py +++ b/aptsources/sourceslist.py @@ -313,7 +313,7 @@ class SourcesList(object): for source in sources: # if there is a repo with the same (type, uri, dist) just add the # components - if source.disabled and set(source.comps) == comps: + if source.disabled and set(source.comps) == set(comps): source.disabled = False return source elif not source.disabled: |
