summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-28 20:01:11 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-03-28 20:01:11 +0000
commit3ac94cc71905535252db84f8a0c26a4f59d8162c (patch)
tree40981b5a77f3acaebb3ebd19f36e20e46ca78424 /lib/libalpm
parentfd09a500d6456b4ba95fd501a5af67426e929dac (diff)
downloadpacman-3ac94cc71905535252db84f8a0c26a4f59d8162c.tar.xz
maked use of db->path instead of handle->root+handle->dbpath+db->treename
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/remove.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c
index 1c6e4806..9b9f91dc 100644
--- a/lib/libalpm/remove.c
+++ b/lib/libalpm/remove.c
@@ -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);
}
}