msys2-web/app/appconfig.py
2025-10-18 19:18:25 +02:00

54 lines
2.8 KiB
Python

# Copyright 2016-2020 Christoph Reiter
# SPDX-License-Identifier: MIT
REPO_URL = "http://repo.msys2.befatorinc.de"
DOWNLOAD_URL = "http://repo.msys2.befatorinc.de"
REPOSITORIES = [
("ucrt64", "", "mingw-w64-ucrt-x86_64-", "mingw-w64-", REPO_URL + "/mingw/ucrt64", DOWNLOAD_URL + "/mingw/ucrt64", "https://git.befatorinc.de/Befator-Inc-Firmen-Netzwerk/MINGW-packages"),
("clang64", "", "mingw-w64-clang-x86_64-", "mingw-w64-", REPO_URL + "/mingw/clang64", DOWNLOAD_URL + "/mingw/clang64", "https://git.befatorinc.de/Befator-Inc-Firmen-Netzwerk/MINGW-packages"),
("clangarm64", "", "mingw-w64-clang-aarch64-", "mingw-w64-", REPO_URL + "/mingw/clangarm64", DOWNLOAD_URL + "/mingw/clangarm64", "https://git.befatorinc.de/Befator-Inc-Firmen-Netzwerk/MINGW-packages"),
("msys", "x86_64", "", "", REPO_URL + "/msys/x86_64", DOWNLOAD_URL + "/msys/x86_64", "https://git.befatorinc.de/Befator-Inc-Firmen-Netzwerk/MSYS2-packages"),
("mingw64", "", "mingw-w64-x86_64-", "mingw-w64-", REPO_URL + "/mingw/mingw64", DOWNLOAD_URL + "/mingw/mingw64", "https://git.befatorinc.de/Befator-Inc-Firmen-Netzwerk/MINGW-packages"),
("mingw32", "", "mingw-w64-i686-", "mingw-w64-", REPO_URL + "/mingw/mingw32", DOWNLOAD_URL + "/mingw/mingw32", "https://git.befatorinc.de/Befator-Inc-Firmen-Netzwerk/MINGW-packages"),
]
ARCH_REPO_URL = "https://europe.mirror.pkgbuild.com"
ARCH_REPO_CONFIG = []
for repo in ["core", "core-testing", "extra", "extra-testing"]:
ARCH_REPO_CONFIG.append(
(ARCH_REPO_URL + f"/{repo}/os/x86_64/{repo}.db", repo)
)
AUR_METADATA_URL = "https://aur.archlinux.org/packages-meta-ext-v1.json.gz"
SRCINFO_URLS = [
"https://git.befatorinc.de/Befator-Inc-Firmen-Netzwerk/MINGW-packages/releases/download/srcinfo-cache/srcinfo.json.gz",
"https://git.befatorinc.de/Befator-Inc-Firmen-Netzwerk/MSYS2-packages/releases/download/srcinfo-cache/srcinfo.json.gz",
]
CYGWIN_METADATA_URL = "https://ftp.acc.umu.se/mirror/cygwin/x86_64/setup.zst"
BUILD_STATUS_URLS = [
"https://git.befatorinc.de/Befator-Inc-Firmen-Netzwerk/msys2-autobuild/releases/download/status/status.json",
]
PYPI_URLS = [
"https://github.com/msys2/MINGW-packages/releases/download/srcinfo-cache/pypi.json.gz",
"https://github.com/msys2/MSYS2-packages/releases/download/srcinfo-cache/pypi.json.gz",
]
CDX_URLS = [
"https://github.com/msys2/MINGW-packages/releases/download/srcinfo-cache/sbom.vuln.cdx.json",
"https://github.com/msys2/MSYS2-packages/releases/download/srcinfo-cache/sbom.vuln.cdx.json"
]
GENTOO_SNAPSHOT_URL = "https://mirror.leaseweb.com/gentoo/snapshots/gentoo-latest.tar.xz"
# Check for updates every 5 minutes by default, at max 1 time every minute even if triggered
UPDATE_INTERVAL = 60 * 5
UPDATE_MIN_INTERVAL = 60
UPDATE_MIN_RATE = 1
REQUEST_TIMEOUT = 60
CACHE_DIR: str | None = None
NO_EXTERN = False