[gimp-web] tools: fix the update-mirrors.py script.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web] tools: fix the update-mirrors.py script.
- Date: Mon, 10 Oct 2022 22:45:10 +0000 (UTC)
commit 22fcabe94dcdce858787ae5116cd136f03e82635
Author: Jehan <jehan girinstud io>
Date: Tue Oct 11 00:43:55 2022 +0200
tools: fix the update-mirrors.py script.
After the moving/renaming of gimpoc to gimputils.oc, I forgot to update a script
using this API.
Also updating the downloads.http.txt listing.
tools/downloads/downloads.http.txt | 2 ++
tools/downloads/update-mirrors.py | 12 ++++++------
2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/tools/downloads/downloads.http.txt b/tools/downloads/downloads.http.txt
index 7c746847..121d7dd6 100644
--- a/tools/downloads/downloads.http.txt
+++ b/tools/downloads/downloads.http.txt
@@ -9,8 +9,10 @@ https://ftp.snt.utwente.nl/pub/software/gimp/
https://gimp.astra.in.ua/pub/
https://gimp.ip-connect.info/
https://gimp.ip-connect.vn.ua/
+https://mirror.dogado.de/gimp/
https://mirror.freedif.org/gimp/pub/
https://mirror.kumi.systems/gimp/pub/
+https://mirror.metanet.ch/gimp/
https://mirror.nju.edu.cn/gimp/
https://mirror.surf/gimp/pub/
https://mirror.umd.edu/gimp/
diff --git a/tools/downloads/update-mirrors.py b/tools/downloads/update-mirrors.py
index 408aa0b3..539dcb71 100755
--- a/tools/downloads/update-mirrors.py
+++ b/tools/downloads/update-mirrors.py
@@ -2,7 +2,7 @@
import argparse
import importlib
-import gimpoc
+import gimputils.oc
import json
import os
import os.path
@@ -22,15 +22,15 @@ args = parser.parse_args()
keep_oc = args.keep_oc
try:
- keep_oc = gimpoc.setup(keep_oc, args.download_oc)
- podname = gimpoc.connect(args.oc_token)
-except gimpoc.Error as err:
+ keep_oc = gimputils.oc.setup(keep_oc, args.download_oc)
+ podname = gimputils.oc.connect(args.oc_token)
+except gimputils.oc.Error as err:
sys.stderr.write(err.message)
sys.exit(err.code)
-mirrors = gimpoc.get_mirrors(podname)
+mirrors = gimputils.oc.get_mirrors(podname)
-gimpoc.cleanup(keep_oc)
+gimputils.oc.cleanup(keep_oc)
with open(args.mirrorsfile, 'wb') as f:
for http in mirrors:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]