From ea3d68258b3e34ed241c2623a82a9991c001dff5 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Fri, 14 Jun 2019 23:47:21 +0700 Subject: [PATCH] install: add dependency check In case of a package already exist in $bin_dir if it isn't built in that system (e.g. by copying the tar file manually from another kiss instance), don't blindly install it but check if the depends are properly installed. Otherwise the binaries won't run properly. --- kiss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index 0990a1b..3231869 100755 --- a/kiss +++ b/kiss @@ -200,7 +200,9 @@ args() { pkg_checksum log "Generated checksums." ;; - i*) pkg_install ;; + i*) pkg_depends + pkg_install ;; + l*) pkg_list "$2" ;; r*) pkg_remove || die "Package '$name' not installed" ;; u*) pkg_updates ;;