summaryrefslogtreecommitdiff
path: root/lib/libalpm/trans.c
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2009-10-10 22:49:24 +0200
committerDan McGee <dan@archlinux.org>2009-10-11 15:18:47 -0500
commit14ab02e289668e30d33c473e00fc43e5dc457644 (patch)
tree1cd09f8ca603d61e5b0486bb55c3982c1d6416f5 /lib/libalpm/trans.c
parent471b1fa54395f7f16939e213f50aaf76f390553b (diff)
downloadpacman-14ab02e289668e30d33c473e00fc43e5dc457644.tar.xz
Rework the alpm_unpack functions
Add support to extract a list of entries Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/trans.c')
-rw-r--r--lib/libalpm/trans.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c
index de45aeae..65bd4642 100644
--- a/lib/libalpm/trans.c
+++ b/lib/libalpm/trans.c
@@ -368,7 +368,7 @@ int _alpm_runscriptlet(const char *root, const char *installfn,
/* either extract or copy the scriptlet */
snprintf(scriptfn, PATH_MAX, "%s/.INSTALL", tmpdir);
if(!strcmp(script, "pre_upgrade") || !strcmp(script, "pre_install")) {
- if(_alpm_unpack(installfn, tmpdir, ".INSTALL")) {
+ if(_alpm_unpack_single(installfn, tmpdir, ".INSTALL")) {
retval = 1;
}
} else {