lib: run pre-remove and pre-install scripts before unpacking

This commit is contained in:
Duncan Overbruck
2021-06-24 17:33:26 +02:00
parent c94648630c
commit 02367e3c00
4 changed files with 57 additions and 23 deletions

View File

@ -198,16 +198,6 @@ unpack_archive(struct xbps_handle *xhp,
*/
pkg_filesd = xbps_pkgdb_get_pkg_files(xhp, pkgname);
/*
* Execute INSTALL "pre" ACTION before unpacking files.
*/
rv = xbps_pkg_exec_script(xhp, pkg_repod, "install-script", "pre", update);
if (rv != 0) {
xbps_set_cb_state(xhp, XBPS_STATE_UNPACK_FAIL, rv, pkgver,
"%s: [unpack] INSTALL script failed to execute pre ACTION: %s",
pkgver, strerror(rv));
goto out;
}
/*
* Unpack all files on archive now.
*/