1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-23 07:30:16 -07:00

kiss: more depends fixes

This commit is contained in:
Dylan Araps 2021-07-06 19:53:49 +03:00
parent d267e2106e
commit fe1d610054
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

8
kiss
View File

@ -409,10 +409,9 @@ pkg_depends() {
# Resolve all dependencies and generate an ordered list. The deepest
# dependencies are listed first and then the parents in reverse order.
contains "$deps" "$1" || {
# Filter out non-explicit, aleady installed dependencies.
if [ "$3" ] && [ -z "$2" ] && pkg_list "$1" >/dev/null 2>&1; then
return
fi
# Filter out non-explicit, already installed packages.
[ -z "$3" ] || [ "$2" ] || contains "$explicit" "$1" ||
! pkg_list "$1" >/dev/null 2>&1 || return
# Detect circular dependencies and bail out.
# Looks for multiple repeating patterns of (dep dep_parent) (5 is max).
@ -693,6 +692,7 @@ pkg_build() {
contains "$deps" "$pkg" || set -- "$@" "$pkg"
done
explicit_cnt=$#
explicit=$*
log "Building: explicit: $*${deps:+, implicit: ${deps## }}"