[pacman-dev] CVS update of pacman-lib/lib/libalpm (remove.c)
Dan McGee
dan at archlinux.org
Thu Apr 5 12:37:23 EDT 2007
Date: Thursday, April 5, 2007 @ 12:37:23
Author: dan
Path: /home/cvs-pacman/pacman-lib/lib/libalpm
Modified: remove.c (1.76 -> 1.77)
Fix running of pre_remove and Post_remove
pkgname was undefined previously when this was called, fixed.
Patch from Roman Kyrylych <roman.kyrylych at gmail.com>.
----------+
remove.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: pacman-lib/lib/libalpm/remove.c
diff -u pacman-lib/lib/libalpm/remove.c:1.76 pacman-lib/lib/libalpm/remove.c:1.77
--- pacman-lib/lib/libalpm/remove.c:1.76 Thu Mar 22 04:22:48 2007
+++ pacman-lib/lib/libalpm/remove.c Thu Apr 5 12:37:23 2007
@@ -284,10 +284,10 @@
break;
}
- snprintf(scriptlet, PATH_MAX, "%s%s-%s/install", db->path,
- pkgname, alpm_pkg_get_version(info));
/* get the name now so we can use it after package is removed */
pkgname = alpm_pkg_get_name(info);
+ snprintf(scriptlet, PATH_MAX, "%s%s-%s/install", db->path,
+ pkgname, alpm_pkg_get_version(info));
if(trans->type != PM_TRANS_TYPE_UPGRADE) {
EVENT(trans, PM_TRANS_EVT_REMOVE_START, info, NULL);
More information about the pacman-dev
mailing list