[pacman-dev] [PATCH 2/3] libalpm/trans.c : remove the DBPath <-> RootDir dependence in runscriptlet.

Chantry Xavier shiningxc at gmail.com
Sun Oct 14 05:32:54 EDT 2007


This code assumed that DBPath was under RootDir, while this is not necessarily the case :
pacman doesn't enforce anymore than DBPath is under RootDir.

So now, all scriptlets will be put somewhere in RootDir/tmp/, so that when it chroots in RootDir,
the scriptlets are still available inside the chroot.

This also removes the need of normalizing both dbpath and rootdir, in order to do computation on the paths.

Signed-off-by: Chantry Xavier <shiningxc at gmail.com>
---
 lib/libalpm/trans.c |   36 +++++++++++++++++++++---------------
 1 files changed, 21 insertions(+), 15 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7af54eae1d704c226bc6edfa892ed55bdb566bec.diff
Type: text/x-patch
Size: 1840 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20071014/f4495117/attachment.bin>


More information about the pacman-dev mailing list