forked from kiss-community/kiss
kiss: Added full dependency resolver.
This commit is contained in:
parent
78fc62568e
commit
a9fef310d1
16
kiss
16
kiss
@ -42,10 +42,15 @@ pkg_setup() {
|
|||||||
|
|
||||||
pkg_depends() {
|
pkg_depends() {
|
||||||
while read -r dep; do
|
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
|
done 2>/dev/null < depends
|
||||||
|
|
||||||
[ -n "$missing" ] && die "Missing dependencies:$missing"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_sources() {
|
pkg_sources() {
|
||||||
@ -179,11 +184,16 @@ args() {
|
|||||||
b*) [ -f checksums ] || die "Checksums missing, run '$0 checksum $name'"
|
b*) [ -f checksums ] || die "Checksums missing, run '$0 checksum $name'"
|
||||||
|
|
||||||
pkg_depends
|
pkg_depends
|
||||||
|
|
||||||
|
[ -n "$missing" ] && die "Missing dependencies:${missing%,}"
|
||||||
|
|
||||||
pkg_sources
|
pkg_sources
|
||||||
pkg_verify
|
pkg_verify
|
||||||
pkg_extract
|
pkg_extract
|
||||||
pkg_build
|
pkg_build
|
||||||
|
|
||||||
[ -f nostrip ] || pkg_strip
|
[ -f nostrip ] || pkg_strip
|
||||||
|
|
||||||
pkg_manifest
|
pkg_manifest
|
||||||
pkg_tar ;;
|
pkg_tar ;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user