summaryrefslogtreecommitdiff
path: root/sh/upd
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-02-24 16:05:18 -0800
committerXiao Pan <gky44px1999@gmail.com>2024-02-24 16:05:18 -0800
commit876a8698dced9a1a6fe8c554a6e48da3a8b41e24 (patch)
tree734951526b6caea7418a2bcfd9a315f5777d3d03 /sh/upd
parent8fbd84e327bc5257f848207ab15c5486d308feca (diff)
update
Diffstat (limited to 'sh/upd')
-rwxr-xr-xsh/upd2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/upd b/sh/upd
index ce1adfa..9f0978e 100755
--- a/sh/upd
+++ b/sh/upd
@@ -147,7 +147,7 @@ pac () {
rustup update
aur="$(paru --color never --noconfirm -aSu --ignore libredwg-git)"
aurpacs="$(echo "$aur" | grep '^Aur' | cut -d' ' -f3-)"
- # /usr/share/libalpm/hooks/rebuild-detector.hook has a line `NeedsTargets` shows it maybe checkrebuild by `printf 'zoom\nminiconda3' | checkrebuild` instead of check all, so I think query pacman hook will be faster than run another `checkrebuild`
+ # /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
checkrebuild_pacs="$(echo "$pac$aur" | nawk '
/^\([0-9]+\/[0-9]+\) Checking which packages need to be rebuilt$/ {f=1; next}