From 67b9f5674194cedfb19724689be244479e14777b 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 c329c35..e420550 100644 --- a/britney2/inputs/suiteloader.py +++ b/britney2/inputs/suiteloader.py @@ -399,8 +399,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: # XXX: Do the get_component thing in a much nicer way that can be upstreamed