diff options
author | Dan McGee <dan@archlinux.org> | 2011-09-28 03:45:46 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-30 10:55:58 -0500 |
commit | 73139ccb3c47ed1ebb1a62a27deb080b66d92bf4 (patch) | |
tree | 20235847d37c48258bc5b192615db5991ba71cb0 /lib/libalpm/trans.h | |
parent | 6bb594802588240405efee0813f7aa1daa9648b3 (diff) | |
download | pacman-73139ccb3c47ed1ebb1a62a27deb080b66d92bf4.tar.xz |
Refactor _alpm_runscriptlet()
Add an is_archive parameter to reduce the amount of black magic going
on. Rework to use fewer PATH_MAX sized local variables, and simplify
some of the logic where appropriate in both this function and in the
callers where duplicate calls can be replaced by some conditional
parameter code.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/trans.h')
-rw-r--r-- | lib/libalpm/trans.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/trans.h b/lib/libalpm/trans.h index 38f45ff7..ff944b09 100644 --- a/lib/libalpm/trans.h +++ b/lib/libalpm/trans.h @@ -47,8 +47,8 @@ struct __alpm_trans_t { void _alpm_trans_free(alpm_trans_t *trans); int _alpm_trans_init(alpm_trans_t *trans, alpm_transflag_t flags); -int _alpm_runscriptlet(alpm_handle_t *handle, const char *installfn, - const char *script, const char *ver, const char *oldver); +int _alpm_runscriptlet(alpm_handle_t *handle, const char *filepath, + const char *script, const char *ver, const char *oldver, int is_archive); #endif /* _ALPM_TRANS_H */ |