diff options
author | herdiansyah@netc.eu <herdiansyah@netc.eu> | 2019-06-14 16:47:20 +0000 |
---|---|---|
committer | herdiansyah@netc.eu <herdiansyah@netc.eu> | 2019-06-14 16:47:20 +0000 |
commit | 37da7f822cb7ae60fd3fbdb2de3583997e150cf2 (patch) | |
tree | 62ba9b9ddeef67b5944a650c4c2078a180a8d5f6 /kiss | |
parent | a33be594b6e896ca319abd265d07b9341ae748c9 (diff) | |
download | cpt-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-x | kiss | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 ;; |