handle missing "Description" in apt-cache show
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 16 Jun 2013 13:42:31 +0000 (15:42 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 20 Jun 2013 08:46:14 +0000 (10:46 +0200)
commit99359751efb1ad84e877219639030feb47fb28f7
treea3993ffc03d0cae502ad2e81d25dd5ad7982dfe0
parent00612a8c55aab3560966533fe77e4940f902b3b6
handle missing "Description" in apt-cache show

do not blindly assume that all packages stanzas have a "Description:"
field in 'apt-cache show' as well as in the cache creation itself.

We instead assume now that if the stanza has a Description, it will not
be the first field as we look out for "\nDescription" to take care of
MD5sum as well as (maybe ignored) translated Descriptions embedded in
the package stanza.

Closes: #712435
apt-pkg/deb/deblistparser.cc
apt-pkg/pkgcachegen.cc
cmdline/apt-cache.cc
debian/changelog
test/integration/test-bug-712435-missing-descriptions [new file with mode: 0755]