From 3c8057acfb86ce7d1f4de6bd8ec38858bd764d96 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 30 Jun 2021 09:14:31 +0000 Subject: [PATCH] kiss: fix dropped package issue --- kiss | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/kiss b/kiss index e7a0203..062ebaf 100755 --- a/kiss +++ b/kiss @@ -665,14 +665,15 @@ pkg_build() { # Install any pre-built dependencies if they exist in the binary # directory and are up to date. - for pkg do - ! contains "$explicit_build" "$pkg" && pkg_cache "$pkg" && { + for pkg in "$@"; do + if ! contains "$explicit_build" "$pkg" && pkg_cache "$pkg"; then log "$pkg" "Found pre-built binary, installing" (KISS_FORCE=1 args i "$tar_file") + else + set -- "$@" "$pkg" + fi - # Remove the now installed package from the build list. - shift - } + shift done for pkg do pkg_sources "$pkg"; done