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.
This commit is contained in:
Muhammad Herdiansyah 2019-06-14 23:47:21 +07:00
parent 2fe1b896f9
commit ea3d68258b

4
kiss
View File

@ -200,7 +200,9 @@ args() {
pkg_checksum pkg_checksum
log "Generated checksums." ;; log "Generated checksums." ;;
i*) pkg_install ;; i*) pkg_depends
pkg_install ;;
l*) pkg_list "$2" ;; l*) pkg_list "$2" ;;
r*) pkg_remove || die "Package '$name' not installed" ;; r*) pkg_remove || die "Package '$name' not installed" ;;
u*) pkg_updates ;; u*) pkg_updates ;;