maked use of db->path instead of handle->root+handle->dbpath+db->treename
This commit is contained in:
parent
fd09a500d6
commit
3ac94cc719
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ int remove_commit(pmdb_t *db, pmtrans_t *trans)
|
||||||
|
|
||||||
/* run the pre-remove scriptlet if it exists */
|
/* run the pre-remove scriptlet if it exists */
|
||||||
if(info->scriptlet) {
|
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);
|
_alpm_runscriptlet(handle->root, pm_install, "pre_remove", info->version, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue