Bug#114518: apt-cache showpkg breaks RFC822 conventions
"apt-cache showpkg" breaks RFC822 conventions on several fields.
A specific example follows - the lines following "Dependencies:"
and "Provides:" are continuation lines that should be indented
by at least one whitespace character. This breaks any code that
assumes RFC822 output, although a partial workaround is to assume
that any line starting with a digit is a continuation line.
(A minor nit: the example also shows a trailing comma on the
"Versions:" field. It's not clear if that is significant, or
just an artifact of the processing code.)
> $ apt-cache showpkg bash
> Package: bash
> Versions: 2.03-6(/var/state/apt/lists/http.us.debian.org_debian_dists_stable_main_binary-i386_Packages)(/var/lib/dpkg/status),
> Reverse Depends:
> 2.03-6 - base-files (2 2.1.12) libc6 (2 2.1.2) libncurses5 (0 (null))
> 2.03-6 -
> Reverse Provides: