mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-11 07:31:04 -04:00
maked use of db->path instead of handle->root+handle->dbpath+db->treename
This commit is contained in:
parent
fd09a500d6
commit
3ac94cc719
@ -133,7 +133,7 @@ int remove_commit(pmdb_t *db, pmtrans_t *trans)
|
||||
|
||||
/* run the pre-remove scriptlet if it exists */
|
||||
if(info->scriptlet) {
|
||||
snprintf(pm_install, PATH_MAX, "%s%s/%s/%s-%s/install", handle->root, handle->dbpath, db->treename, info->name, info->version);
|
||||
snprintf(pm_install, PATH_MAX, "%s/%s-%s/install", db->path, info->name, info->version);
|
||||
_alpm_runscriptlet(handle->root, pm_install, "pre_remove", info->version, NULL);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user