mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 00:20:05 -07:00
kiss: go back to doing dependencies externally to pkg_depends for pkg_install
This commit is contained in:
parent
fc699ff91f
commit
6c7033ad19
20
kiss
20
kiss
@ -1116,15 +1116,19 @@ pkg_install() {
|
|||||||
[ "$KISS_FORCE" = 1 ] || {
|
[ "$KISS_FORCE" = 1 ] || {
|
||||||
pkg_manifest_verify "$pkg_db/$pkg/manifest"
|
pkg_manifest_verify "$pkg_db/$pkg/manifest"
|
||||||
|
|
||||||
# Intentional.
|
[ -f "$pkg_db/$pkg/depends" ] && {
|
||||||
# shellcheck disable=2030
|
while read -r dep dep_type || [ "$dep" ]; do
|
||||||
(
|
case "$dep ${dep_type:-null}" in
|
||||||
KISS_PATH=$tar_dir/$pkg/$pkg_db:$KISS_PATH
|
[!#]*\ null)
|
||||||
|
pkg_list "$dep" >/dev/null 2>&1 ||
|
||||||
|
dep_err="$dep_err$dep, "
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done < "$pkg_db/$pkg/depends"
|
||||||
|
|
||||||
pkg_depends "$pkg" explicit runtime 2>/dev/null ||:
|
[ -z "$dep_err" ] ||
|
||||||
|
die "$pkg" "Missing ${dep_err%, }"
|
||||||
[ -z "$deps" ] || die "$pkg" "Missing $deps"
|
}
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
run_hook pre-install "$pkg" "$tar_dir/$pkg"
|
run_hook pre-install "$pkg" "$tar_dir/$pkg"
|
||||||
|
Loading…
Reference in New Issue
Block a user