cpt

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

commit a9fef310d11d56310ec369f3538dbfb9b8518ba6
parent 78fc62568ed653136bf08d7c91df890da45c5f9d
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Fri, 14 Jun 2019 09:28:32 +0300

kiss: Added full dependency resolver.

Diffstat:
Mkiss | 16+++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/kiss b/kiss @@ -42,10 +42,15 @@ pkg_setup() { pkg_depends() { while read -r dep; do - pkg_list "$dep" || missing="$missing $dep" + pkg_list "$dep" || { + case $missing in + *" $dep,"*) ;; + *) missing="$missing $dep," + pkg_setup "$dep" + pkg_depends ;; + esac + } done 2>/dev/null < depends - - [ -n "$missing" ] && die "Missing dependencies:$missing" } pkg_sources() { @@ -179,11 +184,16 @@ args() { b*) [ -f checksums ] || die "Checksums missing, run '$0 checksum $name'" pkg_depends + + [ -n "$missing" ] && die "Missing dependencies:${missing%,}" + pkg_sources pkg_verify pkg_extract pkg_build + [ -f nostrip ] || pkg_strip + pkg_manifest pkg_tar ;;