From 1a9ead11568cb947726ca7d6baea877733a1fb1f Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Fri, 13 Sep 2019 21:47:58 +0000 Subject: kiss: clean up FossilOrigin-Name: 1edeb1f6f400dc13819741de892658bfe421e193e55a5bb379b3579decf9c922 --- kiss | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/kiss b/kiss index 87ca4d5..98f1776 100755 --- a/kiss +++ b/kiss @@ -367,21 +367,17 @@ pkg_build() { explicit=$(echo "$explicit" | sed "s/ $pkg / /g") done - # Set the resolved dependency list as the function's arguments. - set -- $deps $explicit - # The dependency solver always lists all dependencies regardless of # whether or not they are installed. Filter out installed dependencies. - for pkg; do + for pkg in $deps $explicit; do contains "$explicit_build" "$pkg" || { pkg_list "$pkg" >/dev/null && continue } - build_packages="$build_packages$pkg " + build="$build$pkg " done - # Set the filtered dependency list as the function's arguments. - set -- $build_packages + set -- $build log "Building: $*" -- cgit v1.2.3