summaryrefslogtreecommitdiff
path: root/aptsources
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-09-03 10:43:02 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2012-09-03 10:43:02 +0200
commitdc65d59dc294bafcd93dbadd848152736ddc11c5 (patch)
treed6745a3a7002e447598f144d85b5537b0deaa02a /aptsources
parent81b72b5d1cf9ddb93f3f92af40b00dfff56174e7 (diff)
parent58ec5e4ea6c4e07a62611d0b588638688c42899b (diff)
downloadpython-apt-dc65d59dc294bafcd93dbadd848152736ddc11c5.tar.gz
merged lp:~sampo555/python-apt/fix_1042916
Diffstat (limited to 'aptsources')
-rw-r--r--aptsources/sourceslist.py2
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: