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

Re: Output of dpkg-scanpackages as XML



On 20050105T163207-0500, William Ballard wrote:
> echo '<packages><entry>'
> zcat /a/dists/latest/binary-i386/Packages.gz | \
>   grep-dctrl . | sed -r
>   -e 's/(Description): (.+)/<\1><Short-Description>\2<\/Short-Description><Long-Decription><![CDATA[/' \
>   -e 's/([^:]+): (.+)/<\1>\2<\/\1>/' \
>   -e 's/^$/]]><\/Long-Description><\/entry><entry>/' | \
>   head -n-1
>   echo '</Long-Description></entry></packages>'

Not that I'm not flattered by the fact that you use grep-dctrl, but ...
Is it really your intent here to filter out those packages whose
packages record does not contain a literal dot?  Sounds like a quite
puzzling requirement, IMHO.

-- 
Antti-Juhani Kaijanaho, Debian developer 

http://kaijanaho.info/antti-juhani/blog/en/debian

Attachment: signature.asc
Description: Digital signature


Reply to: