aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-13 21:47:58 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-13 21:47:58 +0000
commit1a9ead11568cb947726ca7d6baea877733a1fb1f (patch)
tree72bc367020ca08f3ca3b36adbf7fb0020a961990
parent6fb5f4908998e8d1814bb42c982d04fd6dda8423 (diff)
downloadcpt-1a9ead11568cb947726ca7d6baea877733a1fb1f.tar.gz
kiss: clean up
FossilOrigin-Name: 1edeb1f6f400dc13819741de892658bfe421e193e55a5bb379b3579decf9c922
-rwxr-xr-xkiss10
1 files 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: $*"