suiteloader: Don't need to do an 'in' check when adding to a set

This commit is contained in:
Iain Lane 2020-07-06 16:29:05 +01:00
parent 96fcaa481a
commit cd73011b2d

View File

@ -389,8 +389,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