[pacman-dev] [PATCH 3/3] libalpm/trans.c : fix a recently introduced breakage in scriptlets handling.
shiningxc at gmail.com
Sun Oct 14 05:33:14 EDT 2007
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 at gmail.com>
lib/libalpm/trans.c | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1571 bytes
Desc: not available
More information about the pacman-dev