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

@@ -165,6 +165,7 @@ state_cb(const struct xbps_state_cb_data *xscd, void *cbdata UNUSED)
printf("%s\n", xscd->desc);
break;
/* errors */
case XBPS_STATE_TRANS_FAIL:
case XBPS_STATE_UNPACK_FAIL:
case XBPS_STATE_UPDATE_FAIL:
case XBPS_STATE_CONFIGURE_FAIL: