[gimp-web] tools: don't verify 2 times checksums from the main download server.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web] tools: don't verify 2 times checksums from the main download server.
- Date: Sat, 30 Apr 2022 20:11:10 +0000 (UTC)
commit 6bd4e02830d8099c9188e4f5fe116463c01a63e4
Author: Jehan <jehan girinstud io>
Date: Fri Apr 29 22:15:15 2022 +0200
tools: don't verify 2 times checksums from the main download server.
This is our base checksum data, so no need to re-download and re-verify
it.
tools/downloads/gimp-check-mirrors.py | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/tools/downloads/gimp-check-mirrors.py b/tools/downloads/gimp-check-mirrors.py
index bb553a96..7efdc8e2 100755
--- a/tools/downloads/gimp-check-mirrors.py
+++ b/tools/downloads/gimp-check-mirrors.py
@@ -123,6 +123,10 @@ for local_uri in local_uris:
#with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
with fileinput.input(files=(args.mirrorsfile), mode='r') as f:
for line in f:
+ if args.verify_checksum and line.strip() == 'https://download.gimp.org/pub/gimp/':
+ # Passing the main server which is also in the list. It's
+ # our checksum base, we don't need to check it again.
+ continue
mirror_uri = line.strip() + local_uri
check_count += 1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]