diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-06-14 06:28:32 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-06-14 06:28:32 +0000 |
commit | f9eff050efb1c2b7443b1dd7633def90f0684aa9 (patch) | |
tree | 288a87b880c11118732a5bab3c1abf9bf3afb2a5 /kiss | |
parent | c10304e4c175c4c42334ef0dcd2f74d726fe62bc (diff) | |
download | cpt-f9eff050efb1c2b7443b1dd7633def90f0684aa9.tar.gz |
kiss: Added full dependency resolver.
FossilOrigin-Name: 3b2a927920ff9ee8e986e709c487434f63a13462a80279993ffe76b28b7e31b7
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -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 ;; |