1
0
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:
Aurelien Foret 2005-03-28 20:01:11 +00:00
parent fd09a500d6
commit 3ac94cc719

View File

@ -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);
}
}