Fix regression for cdrom: sources from latest security update
authorMichael Vogt <mvo@ubuntu.com>
Sun, 21 Sep 2014 19:23:04 +0000 (21:23 +0200)
committerMichael Vogt <mvo@ubuntu.com>
Sun, 21 Sep 2014 19:23:04 +0000 (21:23 +0200)
commit801745284905e7962aa77a9f37a6b4e7fcdc19d0
tree69c1fa5449b9fb91779398f2b3aa6128400537c1
parent2bd6be8ad24583ed9935f5c5d57c04ba7344111e
Fix regression for cdrom: sources from latest security update

Skip a reverify for cdrom: sources. The reverify step is actually
harmful here because the apt-cdrom add code uses the indexcopy.cc
which will "normalize" the Packages file from the cdrom when it
writes it to the local disk. This leads to changing the "MD5sum"
field (notice the lower case "s") on the cdrom Packages file to
a "MD5Sum" field on the local file in /var/lib/apt/lists. Which
of course alters the hash and makes apt fail to reverify the file.
apt-pkg/acquire-item.cc