termux-tools: use https://termux.org/packages/ as fallback instead of direct Bintray URL

This commit is contained in:
Leonid Pliushch 2020-07-31 14:29:31 +03:00
parent 713c7160fc
commit c30de5e30b
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://termux.com/
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_VERSION=0.86
TERMUX_PKG_VERSION=0.87
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_ESSENTIAL=true

View File

@ -19,8 +19,8 @@ show_help() {
}
select_mirror() {
local main_repo="https://dl.bintray.com/termux/termux-packages-24"
local top_mirrors="${main_repo} https://termux.mentality.rip/termux-packages-24 https://grimler.se/termux-packages-24 https://main.termux-mirror.ml"
local main_repo="https://termux.org/packages"
local top_mirrors="https://dl.bintray.com/termux/termux-packages-24 https://termux.mentality.rip/termux-packages-24 https://grimler.se/termux-packages-24 https://main.termux-mirror.ml"
local current_mirror
current_mirror=$(grep -P "^\s*deb\s+" @TERMUX_PREFIX@/etc/apt/sources.list | grep -oP 'https?://[a-z0-9/._-]+')