[pacman-dev] [PATCH 3/3] libalpm/trans.c : fix a recently introduced breakage in scriptlets handling.

Chantry Xavier 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...
Name: 7472a8f016280455497b776a543423fa7fde43d2.diff
Type: text/x-patch
Size: 1571 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20071014/21a1a5d2/attachment.bin>


More information about the pacman-dev mailing list