index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Roman Kyrylych <roman.kyrylych@gmail.com> | 2007-04-05 12:40:18 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-04-05 12:40:18 -0400 |
commit | 37eafc3d315b5fe91c1792da4cca65577bc4a498 (patch) | |
tree | b56c9087e88e09b21f6034843db72bdad42a88de /lib | |
parent | 4dc5dfc72a7b43829ada392a984661107a100da9 (diff) |
-rw-r--r-- | lib/libalpm/remove.c | 4 |
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index 835d9d04..1284aaa9 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -284,10 +284,10 @@ int _alpm_remove_commit(pmtrans_t *trans, pmdb_t *db) 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); |