]> git.saurik.com Git - apt.git/commit - apt-pkg/acquire-item.cc
apt-pkg/acquire-item.cc: Reject files known to be invalid (LP: #346386) (Closes:...
authorJulian Andres Klode <jak@debian.org>
Mon, 30 May 2011 12:04:01 +0000 (14:04 +0200)
committerJulian Andres Klode <jak@debian.org>
Mon, 30 May 2011 12:04:01 +0000 (14:04 +0200)
commit0901c5d08eadea5b5d91b09d4f532a029cb42574
tree4e5006b2bfe1287d8b1c0a13ca84428e71672f26
parentdb95f57184f0e5a767aa07c1b629b987093f342e
apt-pkg/acquire-item.cc: Reject files known to be invalid (LP: #346386) (Closes: #195301)

This commit deals with the following cases:

  - First section of index file (Packages,Sources,Translation) without Package field
  - Signed release files without GPG data (NODATA)
  - i18n/Index files without hash sums

Handling unsigned Release files is more complicated, and the example code
using indexRecords is disabled as it can reject correct Release files
without hashes. How we can reliably check unsigned Release files is
another question, and not urgent anyway, as it should have no
dramatic effect (we could check that it is a valid RFC-822 section,
but that's a bit too long to write)
apt-pkg/acquire-item.cc
debian/changelog