Re: Does leading slash matter in install scriptlets?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux