update 2026-06-16 17:21:41

This commit is contained in:
action
2026-06-16 17:21:41 +08:00
parent 19b8fe19fc
commit 0bae71881b
9 changed files with 75 additions and 38 deletions
+12 -1
View File
@@ -160,6 +160,16 @@ wrapped_in_update() {
eval "$@"
}
refresh_installed() {
local pkg
for pkg in $@; do
[[ $pkg == app-meta-* ]] || continue
pkg="/usr/lib/opkg/meta/${pkg#app-meta-}.json"
[[ -f "$pkg" ]] && touch "$pkg"
done
return 0
}
step_upgrade() {
local pkg
local pkgs=""
@@ -176,6 +186,7 @@ step_upgrade() {
fi
if [ -n "$metapkg" ]; then
opkg_wrap_mirrors upgrade $metapkg || return 1
refresh_installed $metapkg
fi
return 0
}
@@ -352,7 +363,7 @@ case $action in
;;
"install")
check_space
wrapped_in_update opkg_wrap_mirrors install "$@" && try_upgrade_depends "$1" && try_autoconf
wrapped_in_update opkg_wrap_mirrors install "$@" && refresh_installed "$1" && try_upgrade_depends "$1" && try_autoconf
;;
"autoconf")
try_autoconf