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

kiss: Don't complain about make dependencies during install

This commit is contained in:
Dylan Araps 2020-06-30 10:14:32 +03:00
parent dcb5cd4d4f
commit 52eb07fe82
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

12
kiss
View File

@ -1097,11 +1097,15 @@ pkg_install() {
die "File $line missing from tarball but mentioned in manifest" die "File $line missing from tarball but mentioned in manifest"
done < "$pkg_db/$pkg_name/manifest" done < "$pkg_db/$pkg_name/manifest"
log "$pkg_name" "Resolving dependencies"; ( log "$pkg_name" "Checking that all dependencies are installed"
pkg_depends "$pkg_name" explicit filter [ -f "$tar_dir/$pkg_name/$pkg_db/$pkg_name/depends" ] &&
while read -r dep dep_type || [ "$dep" ]; do
[ "${dep##\#*}" ] || continue
[ "$dep_type" ] || pkg_list "$dep" >/dev/null ||
install_dep="$install_dep'$dep', "
done < "$tar_dir/$pkg_name/$pkg_db/$pkg_name/depends"
case $deps in *[!\ ]*) printf '%s\n' "${deps# }"; false; esac [ "$install_dep" ] && die "$1" "Package requires ${install_dep%, }"
) || die "$1" "Package is missing dependencies"
} }
run_hook pre-install "$pkg_name" "$tar_dir/$pkg_name" run_hook pre-install "$pkg_name" "$tar_dir/$pkg_name"