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:
parent
dcb5cd4d4f
commit
52eb07fe82
12
kiss
12
kiss
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user