Make sure _lookup_repo_storages_by_content_checksum operates over a set

This commit is contained in:
Joseph Schorr 2019-02-14 14:43:23 -05:00
parent 69c306e740
commit 7688a3e348

View file

@ -453,6 +453,8 @@ class SharedModel:
return None
def _lookup_repo_storages_by_content_checksum(self, repo, checksums, by_manifest=False):
checksums = set(checksums)
# Load any shared storages first.
extra_storages = []
for checksum in list(checksums):