[pacman-dev] pacman -Ql

Xavier shiningxc at gmail.com
Mon Jun 18 19:28:49 EDT 2007

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 :

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..

More information about the pacman-dev mailing list