termux-tools: use https://termux.org/packages/ as fallback instead of direct Bintray URL
This commit is contained in:
parent
713c7160fc
commit
c30de5e30b
@ -1,7 +1,7 @@
|
|||||||
TERMUX_PKG_HOMEPAGE=https://termux.com/
|
TERMUX_PKG_HOMEPAGE=https://termux.com/
|
||||||
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
|
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
|
||||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||||
TERMUX_PKG_VERSION=0.86
|
TERMUX_PKG_VERSION=0.87
|
||||||
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
||||||
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||||
TERMUX_PKG_ESSENTIAL=true
|
TERMUX_PKG_ESSENTIAL=true
|
||||||
|
@ -19,8 +19,8 @@ show_help() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
select_mirror() {
|
select_mirror() {
|
||||||
local main_repo="https://dl.bintray.com/termux/termux-packages-24"
|
local main_repo="https://termux.org/packages"
|
||||||
local top_mirrors="${main_repo} https://termux.mentality.rip/termux-packages-24 https://grimler.se/termux-packages-24 https://main.termux-mirror.ml"
|
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
|
local current_mirror
|
||||||
current_mirror=$(grep -P "^\s*deb\s+" @TERMUX_PREFIX@/etc/apt/sources.list | grep -oP 'https?://[a-z0-9/._-]+')
|
current_mirror=$(grep -P "^\s*deb\s+" @TERMUX_PREFIX@/etc/apt/sources.list | grep -oP 'https?://[a-z0-9/._-]+')
|
||||||
|
Loading…
Reference in New Issue
Block a user