commit cc6df0c4c1aaae83eb8df2c0c314443a9fdd75ce parent 0b8a1bd32ebdd1b9a6d27069ac5ae81f676adebd Author: Jan Pobříslo <ccx@te2000.cz> Date: Thu, 23 Jun 2022 02:52:01 +0200 Try to check for packages with version stripped Diffstat:
M | zsh-functions/confz_containers_init | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/zsh-functions/confz_containers_init b/zsh-functions/confz_containers_init @@ -1080,11 +1080,16 @@ confz_container_nix_packages_installed_check() { grep -o 'outPath = "[^"]*"' $manifest_file \ | uniq | sed 's|^outPath = "/nix/store/[^-]*-||;s|"$||' )}" ) + local -a world_noversion=( + "${${world[@]%-bin}/%-[0-9.]#/}" + ) local -a missing local pkg for pkg in $=vars[packages]; do - (( $world[(I)${pkg}] )) || missing+=( $pkg ) + (( $world[(I)${pkg}] )) || \ + (( $world_noversion[(I)${pkg}] )) || \ + missing+=( $pkg ) done do_command=(