1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 08:30:05 -07:00

kiss: Stop hiding errors in dependency resolution

This commit is contained in:
Dylan Araps 2020-09-12 17:38:45 +03:00
parent 1c58d21d9b
commit eed7a68a7a
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

26
kiss
View File

@ -364,23 +364,25 @@ pkg_depends() {
contains "$deps" "$1" || { contains "$deps" "$1" || {
# Filter out non-explicit, aleady installed dependencies. # Filter out non-explicit, aleady installed dependencies.
case $3-$2 in case $3-$2 in
*?-) ! pkg_list "$1" >/dev/null || return 0 *?-) pkg_list "$1" >/dev/null && return 0
esac esac
pkg_find "$1" || repo_dir=null pkg_find "$1"
# Recurse through the dependencies of the child packages. # Recurse through the dependencies of the child packages.
while read -r dep _ || [ "$dep" ]; do [ -f "$repo_dir/depends" ] && {
case $dep in while read -r dep _ || [ "$dep" ]; do
\#* | '') case $dep in
# Comments and blank lines. \#*|'')
;; # Comments and blank lines.
;;
*) *)
pkg_depends "$dep" '' "$3" pkg_depends "$dep" '' "$3"
;; ;;
esac esac
done 2>/dev/null < "$repo_dir/depends" ||: done < "$repo_dir/depends"
}
# After child dependencies are added to the list, # After child dependencies are added to the list,
# add the package which depends on them. # add the package which depends on them.