Skip to content

Commit 43eee1d

Browse files
author
games647
committed
Treat same checksum and size as the same version
This can happen if the url for downloading changed (i.e. load-balancing), but the actual application is still the same.
1 parent 676093e commit 43eee1d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/externaldata.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,7 @@ def matches(self, other: ExternalFile):
320320
for i in (self, other):
321321
assert i.checksum is None or isinstance(i.checksum, MultiDigest), i.checksum
322322
return (
323-
self.url == other.url
324-
and self.checksum == other.checksum
323+
self.checksum == other.checksum
325324
and (self.size is None or other.size is None or self.size == other.size)
326325
)
327326

0 commit comments

Comments
 (0)