mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-12 12:25:02 -05:00
Really run scriptlet on pre_remove and post_remove
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
4dc5dfc72a
commit
37eafc3d31
@ -284,10 +284,10 @@ int _alpm_remove_commit(pmtrans_t *trans, pmdb_t *db)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(scriptlet, PATH_MAX, "%s%s-%s/install", db->path,
|
|
||||||
pkgname, alpm_pkg_get_version(info));
|
|
||||||
/* get the name now so we can use it after package is removed */
|
/* get the name now so we can use it after package is removed */
|
||||||
pkgname = alpm_pkg_get_name(info);
|
pkgname = alpm_pkg_get_name(info);
|
||||||
|
snprintf(scriptlet, PATH_MAX, "%s%s-%s/install", db->path,
|
||||||
|
pkgname, alpm_pkg_get_version(info));
|
||||||
|
|
||||||
if(trans->type != PM_TRANS_TYPE_UPGRADE) {
|
if(trans->type != PM_TRANS_TYPE_UPGRADE) {
|
||||||
EVENT(trans, PM_TRANS_EVT_REMOVE_START, info, NULL);
|
EVENT(trans, PM_TRANS_EVT_REMOVE_START, info, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user