Use sha256 hashes only from trusted mirrors

To keep this commit small, `hashurl` was removed from QtPackage, and
`get_hash` constructs the hash url based on the url of the 7z archive
to download. I think that in the future, QtArchive and QtPackage could
be refactored to construct this url more appropriately. However, this
would be a complicated change that doesn't belong in this commit.
This commit is contained in:
David Dalcino
2022-02-27 11:43:36 -08:00
parent b92ee9935d
commit 7ebd6aa34e
7 changed files with 85 additions and 22 deletions

View File

@@ -47,6 +47,10 @@ class ArchiveChecksumError(ArchiveDownloadError):
pass
class ChecksumDownloadFailure(ArchiveDownloadError):
pass
class ArchiveConnectionError(AqtException):
pass