summaryrefslogtreecommitdiff
path: root/sh/upd
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2026-08-22 11:32:08 +0800
committerXiao Pan <xyz@flylightning.xyz>2026-08-22 11:32:08 +0800
commit17df8f6f77fe4baa7bfe317c52fcbd966fcaa9fb (patch)
treedd8f36101c85fc1e2ee100bb5f4b6069f4420e3f /sh/upd
parent770df2d100d7640c3862b310534b8c81f220c3c7 (diff)
upd automate update pkgs need ignore architecture, e.g., htop-vimHEADmaster
Diffstat (limited to 'sh/upd')
-rwxr-xr-xsh/upd6
1 files changed, 5 insertions, 1 deletions
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