[gimp-web/wip/Jehan/fix-ci: 3/3] Revert "Add some debugging for the CI."
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/wip/Jehan/fix-ci: 3/3] Revert "Add some debugging for the CI."
- Date: Sun, 1 May 2022 19:53:16 +0000 (UTC)
commit bcff344089d45be6bd11a2eedf3979438ae27521
Author: Jehan <jehan girinstud io>
Date: Sun May 1 21:53:07 2022 +0200
Revert "Add some debugging for the CI."
This reverts commit 142e1ba582fa6f34d3e19a4ce19285eb94e2b79a.
tools/downloads/gimp-check-mirrors.py | 7 -------
1 file changed, 7 deletions(-)
---
diff --git a/tools/downloads/gimp-check-mirrors.py b/tools/downloads/gimp-check-mirrors.py
index 1e608488..1d5964c8 100755
--- a/tools/downloads/gimp-check-mirrors.py
+++ b/tools/downloads/gimp-check-mirrors.py
@@ -8,7 +8,6 @@ import hashlib
import re
import requests
import sys
-import time
# argparse for mirrorsfile and uri
parser = argparse.ArgumentParser(description='Check if GIMP download mirrors have a file from
download.gimp.org.')
@@ -95,8 +94,6 @@ def find_latest():
return latest
def verify_remote(uri, future):
- start = time.monotonic()
- print("verify_remote({}) START {}".format(uri, start))
success = False
status = None
checksum_ok = None
@@ -132,7 +129,6 @@ def verify_remote(uri, future):
status = 'Too many redirects'
except OSError as error:
status = str(error.strerror)
- print("verify_remote({}) END took {}".format(uri, time.monotonic() - start))
return uri, success, status, checksum_ok
@@ -153,13 +149,10 @@ error_count = 0
check_count = 0
def get_checksum(local_uri):
- start = time.monotonic()
- print("get_checksum({}) START {}".format(local_uri, start))
with requests.get('https://download.gimp.org/pub/gimp/' + local_uri, stream=True) as response:
origin_sum = hashlib.sha256()
for line in response.iter_content(chunk_size=65536, decode_unicode=False):
origin_sum.update(line)
- print("get_checksum({}) END took {}".format(local_uri, time.monotonic() - start))
return origin_sum.digest()
origin_checksums = {}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]