diff options
author | Katja Marttila <katja.marttila@qt.io> | 2023-01-31 15:57:22 +0200 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2023-02-09 07:36:56 +0200 |
commit | c9d7f2a3f72ced2dd576057b84bf03c6ece260af (patch) | |
tree | c3efe302ace3c4d544c9ea01b8d923332c921bb9 /src/libs/kdtools/filedownloader.h | |
parent | 399c010235bdb9079005930e125f301f53153808 (diff) |
Check sha1 checksum per repository
Updates.xml contains Checksum variable which can be set to false to
skip the archives checksum verification. The variable was read from one
arbitrary Updates.xml file and that was used in all downloads. Fixed so
that the checksum is read per Updates.xml. This change also speeds up
the component generation phase as it no longer needs to read Updates.xml
file.
Task-number: QTIFW-2805
Task-number: QTIFW-2928
Change-Id: Id28dd370ef200aec67cb85cbbc1d08d925b43c21
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/kdtools/filedownloader.h')
-rw-r--r-- | src/libs/kdtools/filedownloader.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/kdtools/filedownloader.h b/src/libs/kdtools/filedownloader.h index f02a4cc85..3990d849a 100644 --- a/src/libs/kdtools/filedownloader.h +++ b/src/libs/kdtools/filedownloader.h @@ -58,6 +58,8 @@ public: QByteArray assumedSha1Sum() const; void setAssumedSha1Sum(const QByteArray &sha1); + void setCheckSha1Sum(const bool checkSha1Sum); + bool checkSha1Sum() const; QString scheme() const; void setScheme(const QString &scheme); |