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

ubuntu/rebased
Iain Lane 5 years ago
parent 6bea01106f
commit 3988d700d3
No known key found for this signature in database
GPG Key ID: E352D5C51C5041D4

@ -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,

Loading…
Cancel
Save