cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 333b77dfe7def63f19950d5f623ca1bd4f3ad637
parent fcf3da6102e07caf261ed294318e6321cb5ed943
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Sun, 16 Jun 2019 17:44:42 +0300

Merge branch 'master' of github.com:kissx/kiss

Diffstat:
Mkiss | 15++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/kiss b/kiss @@ -41,14 +41,17 @@ pkg_setup() { } pkg_depends() { - while read -r dep; do - pkg_list "$dep" || + while read -r dep opt; do + pkg_list "$dep" || { + [ "$1" = install ] && [ "$opt" = make ] && continue + case $missing in - *" $dep,"*) ;; - *) missing="$missing $dep," + *" $dep${opt:+ ($opt)},"*) ;; + *) missing="$missing $dep${opt:+ ($opt)}," pkg_setup "$dep" pkg_depends ;; esac + } done 2>/dev/null < depends } @@ -200,7 +203,9 @@ args() { pkg_checksum log "Generated checksums." ;; - i*) pkg_install ;; + i*) pkg_depends install + pkg_install ;; + l*) pkg_list "$2" ;; r*) pkg_remove || die "Package '$name' not installed" ;; u*) pkg_updates ;;