summaryrefslogtreecommitdiff
path: root/UpdateManager
diff options
context:
space:
mode:
Diffstat (limited to 'UpdateManager')
-rw-r--r--UpdateManager/Common/aptsources.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/UpdateManager/Common/aptsources.py b/UpdateManager/Common/aptsources.py
index fce06c2b..3d317b15 100644
--- a/UpdateManager/Common/aptsources.py
+++ b/UpdateManager/Common/aptsources.py
@@ -204,11 +204,17 @@ class SourceEntry:
return line
# the SourceList file as a class
+class NullMatcher(object):
+ def match(self, s):
+ return True
+
class SourcesList:
def __init__(self, withMatcher=True):
self.list = [] # of Type SourceEntries
if withMatcher:
self.matcher = SourceEntryMatcher()
+ else:
+ self.matcher = NullMatcher()
self.refresh()
def refresh(self):