diff options
author | Chantry Xavier <shiningxc@gmail.com> | 2007-10-14 10:17:48 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-10-14 18:47:19 -0500 |
commit | 3d7e06f204d7f94aa9d22cd4e4a895d2780025e8 (patch) | |
tree | 516677a3c2c734ba82ac46dd4bfa0c7535e68736 /mkinstalldirs | |
parent | 4e6a03c4f6d413aa9f1c98d255c370c442ce55eb (diff) | |
download | pacman-3d7e06f204d7f94aa9d22cd4e4a895d2780025e8.tar.xz |
libalpm/trans.c : fix a recently introduced breakage in scriptlets handling.
Commit 4853a4aad97fe36f9237ffb7356201adab507a1c used the tmpdir variable
for checking the existence of /bin/sh, without resetting it.
This caused /bin/sh to be deleted during the cleanup part, as soon as a scriptlet
other than pre_upgrade or pre_install was executed.
For example, on the first post_upgrade during a -Su.
I introduced two variables : clean_tmpdir and restore_cwd, for deciding what should
be done in the cleanup part.
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Diffstat (limited to 'mkinstalldirs')
0 files changed, 0 insertions, 0 deletions