Commit 4dd3297a authored by Strit's avatar Strit

update url in setup again

parent 4cda6a33
......@@ -23,7 +23,7 @@
TEST_FILE = "core.db.tar.gz"
USER_AGENT = "Pacman-Mirrors/"
URL_MIRROR_JSON = \
"https://gitlab.manjaro.org/tools/maintenance-tools/manjaro-web-repo/raw/master/mirrors.json"
"https://gitlab.manjaro.org/manjaro-arm/applications/mirrors/raw/master/mirrors.json"
URL_STATUS_JSON = "http://repo.manjaro.org/status.json"
INET_CONN_CHECK_URLS = ["https://gitlab.manjaro.org",
"https://wikipedia.org",
......@@ -38,9 +38,10 @@ CUSTOM_FILE = "/var/lib/pacman-mirrors/custom-mirrors.json"
MIRROR_FILE = "/usr/share/pacman-mirrors/mirrors.json"
STATUS_FILE = "/var/lib/pacman-mirrors/status.json"
# repo constants
BRANCHES = ("stable", "testing", "unstable")
X32_BRANCHES = ("x32-stable", "x32-testing", "x32-unstable")
BRANCHES = ("stable")
#X32_BRANCHES = ("x32-stable", "x32-testing", "x32-unstable")
PROTOCOLS = ("https", "http", "ftp", "ftps")
METHODS = ("rank", "random")
SSL = ("True", "False")
REPO_ARCH = "/$repo/$arch"
#REPO_ARCH = "/$repo/$arch"
REPO_ARCH = "/$arch/$repo"
......@@ -18,7 +18,7 @@ def update_mirror_file():
countries = list()
try:
with urlopen(
"https://gitlab.manjaro.org/manjaro-arm/applications/mirrors/blob/master/mirrors.json") as \
"https://gitlab.manjaro.org/manjaro-arm/applications/mirrors/raw/master/mirrors.json") as \
response:
countries = json.loads(response.read().decode("utf8"), object_pairs_hook=collections.OrderedDict)
except (HTTPException, json.JSONDecodeError, URLError, timeout):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment