[pacman-dev] pacman -Ql

Dan McGee dpmcgee at gmail.com
Tue Jun 19 00:51:58 EDT 2007


On 6/18/07, Xavier <shiningxc at gmail.com> wrote:
> I found it weird that pacman -Ql listed two directories :
>
> pacman -Ql | grep "/$"
> cups /var/spool/cups/tmp/
> ttf-ms-fonts /tmp/ttf-ms-fonts/
>
> I found the explanation here :
> http://bbs.archlinux.org/viewtopic.php?pid=259654#p259654
>
> I think this code is wrong, but don't know how to fix it..
> Why does it have to use stat for dir though ? Can't it just check for
> the trailing slash ?
>
> And then, stat could be used for the feature request of this thread,
> ie checking that all files from package actually exist on the
> filesystem. But in this case, root access will be needed here,
> otherwise it'll get it wrong..

If you explain your logic a bit better and provide a patch actually
fixing something, we'll be sure to take it. stat just seemed like the
best way at the time to ensure that something was in fact a directory
and not a file, symlink, etc.

-Dan




More information about the pacman-dev mailing list