add pre-install hook

This commit is contained in:
Cem Keylan 2020-03-05 18:03:37 +03:00
parent 9d19826b85
commit fd0103e621
No known key found for this signature in database
GPG Key ID: D79FAF401E813987
1 changed files with 2 additions and 0 deletions

2
kiss
View File

@ -937,6 +937,8 @@ pkg_install() {
[ "$install_dep" ] && die "$1" "Package requires ${install_dep%, }"
run_hook pre-install
pkg_conflicts "$tar_file" "$pkg_name"
log "$pkg_name" "Installing package incrementally"