From 17df8f6f77fe4baa7bfe317c52fcbd966fcaa9fb Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sat, 22 Aug 2026 11:32:08 +0800 Subject: upd automate update pkgs need ignore architecture, e.g., htop-vim --- sh/upd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sh') diff --git a/sh/upd b/sh/upd index be0524b..a712c8a 100755 --- a/sh/upd +++ b/sh/upd @@ -249,7 +249,11 @@ pac () { pacpacs="$(echo "$pacout" | grep -m1 '^Packages' | cut -d' ' -f3-)" # Update rust toolchains before paru so paru can compile things in newest rust if needed. [ "$hostname" = xyzinsp ] && rustup update - aurout="$(paru --color never -aSu | tee /dev/tty)" + if [ "$hostname" = xyzpp ]; then + aurout="$(paru --color never --mflags -A -aSu | tee /dev/tty)" + else + aurout="$(paru --color never -aSu | tee /dev/tty)" + fi aurpacs="$(echo "$aurout" | grep '^Aur' | cut -d' ' -f3-)" # /usr/share/libalpm/hooks/rebuild-detector.hook has a line `NeedsTargets` shows it maybe checkrebuild only upgraded packages by `printf 'zoom\nminiconda3' | checkrebuild` instead of maybe check all by `checkrebuild`, so I think query pacman hook will be faster than run another `checkrebuild` # notes about awk f=1 things see https://git.flylightning.xyz/public_archive_codes/tree/sh/mrt -- cgit v1.3.1