Displaying %doc and language specific files of an rpm

Till Maas opensource at till.name
Tue Dec 9 22:23:53 UTC 2008


On Mon December 1 2008, Panu Matilainen wrote:

> Docs, config files, ghosts and the like can be viewed with this ('d' is
> for doc):
> rpm -qp --qf "[%{fileflags:fflags} %{filenames}\n]" <pkg>

I want to extend this to display a "-> linktarget" if a file is a symlink. 
This is what I tried, but it always adds the "->":

rpm -qp --qf "[%{filenames} %|filelinktos?{-> %{filelinktos}}:{}| \n]"

Do you know, how to make this work? I found the %|foo?{bar}:{baz}| syntax in 
the queryformat doc file from rpm.

Regards,
Till

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20081209/187439a7/attachment.bin 


More information about the devel mailing list