Update repo

This commit is contained in:
termux-pacman-bot
2024-01-15 16:40:06 +00:00
parent a91bca8319
commit 463b753b18

View File

@@ -12,8 +12,9 @@ termux_step_setup_cgct_environment() {
local PKG_DIR_SPLIT=(${PKG_DIR//// })
local REPO_NAME=""
for idx in ${!TERMUX_PACKAGES_DIRECTORIES[@]}; do
if [ "${TERMUX_PACKAGES_DIRECTORIES[$idx]}" = "${PKG_DIR_SPLIT[-3]}" ]; then
local LIST_PACKAGES_DIRECTORIES=(${TERMUX_PACKAGES_DIRECTORIES})
for idx in ${!LIST_PACKAGES_DIRECTORIES[@]}; do
if [ "${LIST_PACKAGES_DIRECTORIES[$idx]}" = "${PKG_DIR_SPLIT[-3]}" ]; then
REPO_NAME=$(echo "${TERMUX_REPO_URL[$idx]}" | sed -e 's%https://%%g' -e 's%http://%%g' -e 's%/%-%g')
if [ "$TERMUX_REPO_PKG_FORMAT" = "debian" ]; then
REPO_NAME+="-${TERMUX_REPO_DISTRIBUTION[$idx]}-Release"