From cc6eb736ca4613d70c3f7ff30317af340ca70bb7 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 1 Aug 2006 00:04:31 +0200 Subject: * UpdateManager/Common/aptsources.py: - added NullMatcher and a "withMatcher" argument --- UpdateManager/Common/aptsources.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'UpdateManager') 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): -- cgit v1.2.3