diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-13 21:47:58 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-13 21:47:58 +0000 |
commit | 1a9ead11568cb947726ca7d6baea877733a1fb1f (patch) | |
tree | 72bc367020ca08f3ca3b36adbf7fb0020a961990 | |
parent | 6fb5f4908998e8d1814bb42c982d04fd6dda8423 (diff) | |
download | cpt-1a9ead11568cb947726ca7d6baea877733a1fb1f.tar.gz |
kiss: clean up
FossilOrigin-Name: 1edeb1f6f400dc13819741de892658bfe421e193e55a5bb379b3579decf9c922
-rwxr-xr-x | kiss | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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: $*" |