Bug#114518: apt-cache showpkg breaks RFC822 conventions
Package: apt
Version: 0.3.19
"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:
> dlocate,bash
> pcd2html,bash
> nosql,bash
> mkrboot,bash
> mason,bash
> libreadlineg2,bash
> fmirror,bash
> dpkg-www,bash
> debroster,bash
> colorgcc,bash
> bug,bash
> bash-doc,bash
> bash-builtins,bash
> base-files,bash
> barracuda,bash
> Dependencies:
> 2.03-6 - base-files (2 2.1.12) libc6 (2 2.1.2) libncurses5 (0 (null))
> Provides:
> 2.03-6 -
> Reverse Provides:
--
Bear Giles
bgiles@coyotesong.com
Reply to: