providing what they require

Bill Nottingham notting at redhat.com
Wed Oct 29 16:14:53 UTC 2008


Panu Matilainen (pmatilai at laiskiainen.org) said: 
> $ rpm -qa --qf "%{name}-%{version}\n[\t%{CLASSDICT}\n]\n"
>
> One of my favorites:
>         PNG image data, 313 x 225, 8-bit/color RGBA, non-interlaced
>         PNG image data, 339 x 210, 8-bit/color RGBA, non-interlaced
>         PNG image data, 349 x 274, 8-bit/color RGBA, non-interlaced
>         ...
>
> Rpm knows not only that it's image data, it even knows the picture
> dimensions...

Only in the sense that that's the raw output of file(1) - to rely
on that, you have to hope that that never changes. Which is unlikely.
(Ergo ... useless.)

Bill




More information about the devel mailing list