aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authorherdiansyah@netc.eu <herdiansyah@netc.eu>2019-06-14 16:47:20 +0000
committerherdiansyah@netc.eu <herdiansyah@netc.eu>2019-06-14 16:47:20 +0000
commit37da7f822cb7ae60fd3fbdb2de3583997e150cf2 (patch)
tree62ba9b9ddeef67b5944a650c4c2078a180a8d5f6 /kiss
parenta33be594b6e896ca319abd265d07b9341ae748c9 (diff)
downloadcpt-37da7f822cb7ae60fd3fbdb2de3583997e150cf2.tar.gz
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. FossilOrigin-Name: f52346ecd23e37df73868d8d5f001bd882915695115164b438e13b81d4c99678
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss4
1 files changed, 3 insertions, 1 deletions
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 ;;