这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scripts/pkg.in
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ case "$TERMUX_APP_PACKAGE_MANAGER" in
rei*) apt install --reinstall "$@";;
se*) select_mirror; update_apt_cache; apt search "$@";;
un*|rem*|rm|del*) apt remove "$@";;
up*) select_mirror; apt update; apt full-upgrade "$@";;
upd*) select_mirror; apt update;;
upg*) select_mirror; apt update; apt full-upgrade "$@";;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be following, otherwise will break existing scripts for package upgrade and comments in issues/reddit.

upd*) select_mirror; apt update;;
up*) select_mirror; apt update; apt full-upgrade "$@";;

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did this suggestion got ignored? I already see lots of complains about pkg up not working anymore.

*) ERROR=true;;
esac;;
pacman)
Expand All @@ -352,7 +353,8 @@ case "$TERMUX_APP_PACKAGE_MANAGER" in
rei*) pacman -S "$@";;
se*) pacman -Sys "$@";;
un*|rem*|rm|del*) pacman -Rcns "$@";;
up*) pacman -Syu "$@";;
up*) pacman -Sy "$@";;
upg*) pacman -Syu "$@";;
*) ERROR=true;;
esac;;
esac
Expand Down