From 3ac94cc71905535252db84f8a0c26a4f59d8162c Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Mon, 28 Mar 2005 20:01:11 +0000 Subject: maked use of db->path instead of handle->root+handle->dbpath+db->treename --- lib/libalpm/remove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm') 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); } } -- cgit v1.2.3-70-g09d2