commit 07aa70d82c908af462d15ce7940199ff92b51a5c parent 7004616528fdb738f935a137eb62aadab43f2c44 Author: ccx <ccx@te2000.cz> Date: Mon, 1 Apr 2024 23:59:18 +0000 Check installed packages using apk info -a Diffstat:
M | zsh-functions/confz_containers_init | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/zsh-functions/confz_containers_init b/zsh-functions/confz_containers_init @@ -928,11 +928,15 @@ confz_container_alpine_packages_installed_check() { local root=$vars[containers_dir]/systems/$vars[image_name] local -a world=( "${(@f)$(<$root/etc/apk/world)}" ) + local -a installed=( "${(@f)$( + $commands[cd] $vars[sysroot_svc] container_sysroot_run + /sbin/apk info -a + )}" ) local -a missing local pkg for pkg in $=vars[packages]; do - (( $world[(I)${pkg}] )) || missing+=( $pkg ) + (( $installed[(I)${pkg}] )) || missing+=( $pkg ) done do_command=(