aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-10 09:10:15 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-10 09:10:15 +0000
commited80c099bc7df490a220d786f1ddf77473877e00 (patch)
treed3e07bbfb5b274e5a3f0dbb6e65b56649bac2944
parent395d17dfc3ca7a6ef76b5d3fb6ae6007ef807666 (diff)
downloadcpt-ed80c099bc7df490a220d786f1ddf77473877e00.tar.gz
kiss: clean up
FossilOrigin-Name: 3a46fd7fb858b3007336d006f771eaa919ab02c50871e4fc5b862da99a0321dd
-rwxr-xr-xkiss12
1 files changed, 4 insertions, 8 deletions
diff --git a/kiss b/kiss
index 10e09b7..9a0fae6 100755
--- a/kiss
+++ b/kiss
@@ -372,15 +372,11 @@ pkg_build() {
# are included and ensure that all installed packages are excluded.
for pkg; do
case $explicit_packages in
- *" $pkg "*)
- build_packages="$build_packages$pkg "
- ;;
-
- *)
- pkg_list "$pkg" >/dev/null ||
- build_packages="$build_packages$pkg "
- ;;
+ *" $pkg "*) ;;
+ *) pkg_list "$pkg" >/dev/null && continue ;;
esac
+
+ build_packages="$build_packages$pkg "
done
# Set the filtered dependency list as the function's arguments.