[pacman-dev] CVS update of pacman-lib/lib/libalpm (add.c)
Date: Thursday, March 22, 2007 @ 04:28:09 Author: aaron Path: /home/cvs-pacman/pacman-lib/lib/libalpm Modified: add.c (1.128 -> 1.129) I was mistaken, newpkg->data IS useful here, as the scriptlet isn't in the FS at this point -------+ add.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: pacman-lib/lib/libalpm/add.c diff -u pacman-lib/lib/libalpm/add.c:1.128 pacman-lib/lib/libalpm/add.c:1.129 --- pacman-lib/lib/libalpm/add.c:1.128 Thu Mar 22 04:22:48 2007 +++ pacman-lib/lib/libalpm/add.c Thu Mar 22 04:28:09 2007 @@ -361,7 +361,7 @@ /* pre_upgrade scriptlet */ if(alpm_pkg_has_scriptlet(newpkg) && !(trans->flags & PM_TRANS_FLAG_NOSCRIPTLET)) { - _alpm_runscriptlet(handle->root, scriptlet, "pre_upgrade", newpkg->version, oldpkg->version, trans); + _alpm_runscriptlet(handle->root, newpkg->data, "pre_upgrade", newpkg->version, oldpkg->version, trans); } } else { is_upgrade = 0; @@ -371,7 +371,7 @@ /* pre_install scriptlet */ if(alpm_pkg_has_scriptlet(newpkg) && !(trans->flags & PM_TRANS_FLAG_NOSCRIPTLET)) { - _alpm_runscriptlet(handle->root, scriptlet, "pre_install", newpkg->version, NULL, trans); + _alpm_runscriptlet(handle->root, newpkg->data, "pre_install", newpkg->version, NULL, trans); } }
participants (1)
-
Aaron Griffin