Skip to content

Commit

Permalink
Treat same checksum and size as the same version
Browse files Browse the repository at this point in the history
This can happen if the url for downloading changed (i.e. load-balancing), but the actual application is still the same.
  • Loading branch information
games647 committed Sep 18, 2024
1 parent 676093e commit 43eee1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/externaldata.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,7 @@ def matches(self, other: ExternalFile):
for i in (self, other):
assert i.checksum is None or isinstance(i.checksum, MultiDigest), i.checksum
return (
self.url == other.url
and self.checksum == other.checksum
self.checksum == other.checksum
and (self.size is None or other.size is None or self.size == other.size)
)

Expand Down

0 comments on commit 43eee1d

Please sign in to comment.