From 3988d700d355d53d34891426c97942b3ae143494 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Mon, 6 Jul 2020 16:29:05 +0100 Subject: [PATCH] suiteloader: Don't need to do an 'in' check when adding to a set --- britney2/inputs/suiteloader.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/britney2/inputs/suiteloader.py b/britney2/inputs/suiteloader.py index 2323e85..4aefcb1 100644 --- a/britney2/inputs/suiteloader.py +++ b/britney2/inputs/suiteloader.py @@ -386,8 +386,7 @@ class DebMirrorLikeSuiteContentLoader(SuiteContentLoader): # source -> binary mapping once. It doesn't matter which # of the versions we include as only the package name and # architecture are recorded. - if pkg_id not in srcdist[source].binaries: - srcdist[source].binaries.add(pkg_id) + srcdist[source].binaries.add(pkg_id) # if the source package doesn't exist, create a fake one else: srcdist[source] = SourcePackage(source,