Closed Sarisan closed 2 years ago
Probably needs something like following instead of just apt update
, assuming pacman
command is correct.
# Setup TERMUX_APP_PACKAGE_MANAGER
source "@TERMUX_PREFIX@/bin/termux-setup-package-manager" || exit 1
case "$TERMUX_APP_PACKAGE_MANAGER" in
apt) apt update;;
pacman) pacman -Syy;;
esac
or it should contain pacman mirrors too
Mirrors for pacman don't exist yet, so it doesn't make sense to configure termux-change-repo to work with pacman.
Ah, right, I guess you can also just run apt update
if if command -v apt 1>/dev/null
for now.
Problem description
termux-change-repo doesn't check if apt is installed, it starts without any message and finishes with next error if apt is not installed:
What steps will reproduce the bug?
pacman -Rns apt
termux-change-repo
What is the expected behavior?
termux-change-repo should check if apt is installed before opening mirror setup or it should contain pacman mirrors too
System information
termux-info: