Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-03-22 08:28:09 +0000
committerAaron Griffin <aaron@archlinux.org>2007-03-22 08:28:09 +0000
commit118671eff46e42de592a9ac4f6ab5fa32c0f907f (patch)
treefddbaadde4dd1367f6de4c54f3f91ffb0986cc00 /lib
parentd8ec08f578f413ef63ad6c23cbc11b1cb70ffd69 (diff)
I was mistaken, newpkg->data IS useful here, as the scriptlet isn't in the FS at
this point
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 0c344544..1ec04371 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -361,7 +361,7 @@ int _alpm_add_commit(pmtrans_t *trans, pmdb_t *db)
/* 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 @@ int _alpm_add_commit(pmtrans_t *trans, pmdb_t *db)
/* 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);
}
}