]> git.saurik.com Git - apt.git/commit - test/integration/Packages-github-23-too-long-dependency-line
VersionHash: Do not skip too long dependency lines
authorJulian Andres Klode <jak@debian.org>
Sun, 18 Sep 2016 11:24:35 +0000 (13:24 +0200)
committerJulian Andres Klode <jak@debian.org>
Sun, 18 Sep 2016 12:17:17 +0000 (14:17 +0200)
commit708e2f1fe99e6f067292bc909f03f12c181e4798
tree61100af61c2d73747fd2e1299f059c198350171f
parentacddd9188c21c2e13aff5cea3a82f2d01aff788b
VersionHash: Do not skip too long dependency lines

If the dependency line does not contain spaces in the repository
but does in the dpkg status file (because dpkg normalized the
dependency list), the dpkg line might be longer than the line
in the repository. If it now happens to be longer than 1024
characters, it would be skipped, causing the hashes to be
out of date.

Note that we have to bump the minor cache version again as
this changes the format slightly, and we might get mismatches
with an older src cache otherwise.

Fixes Debian/apt#23
apt-pkg/deb/deblistparser.cc
apt-pkg/pkgcache.cc
test/integration/Packages-github-23-too-long-dependency-line [new file with mode: 0644]
test/integration/status-github-23-too-long-dependency-line [new file with mode: 0644]
test/integration/test-github-23-too-long-dependency-line [new file with mode: 0755]