[arch-general] Does leading slash matter in install scriptlets?

Allan McRae allan at archlinux.org
Wed Aug 7 06:19:38 EDT 2013


On 07/08/13 18:35, lolilolicon wrote:
> Many install scriptlets include the leading slash in file paths, e.g.
> 
> post_install() {
>     update-desktop-database -q
>     gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
> }
> 
> while some strip the leading slash,
> 
> post_install() {
>     update-desktop-database -q
>     gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
> }
> 
> Would this make a difference with `pacman -S --root <path> <pkg>`?
> If not, is there any case in which it would make a difference?
> 

I believe it possibly did in the past, but pacman chroots into the
--root directory before running any scripts so it makes no difference.

Allan



More information about the arch-general mailing list