Ensure that iTFRewritePackageOrder is "MD5sum" to match apt-ftparchive
authorMichael Vogt <mvo@ubuntu.com>
Sun, 21 Sep 2014 19:40:10 +0000 (21:40 +0200)
committerMichael Vogt <mvo@ubuntu.com>
Sun, 21 Sep 2014 19:40:10 +0000 (21:40 +0200)
The iTFRewritePackageOrder is used in indexcopy to copy and normalize
cdrom Packages files. This change will ensure that there is no
"normalization" that changes MD5sum -> MD5Sum which alters the hash
of the Packages file on disk (oh the irony).

apt-pkg/tagfile.cc

index 91d176e..bf865bd 100644 (file)
@@ -526,7 +526,7 @@ static const char *iTFRewritePackageOrder[] = {
                           "Conffiles",
                           "Filename",
                           "Size",
                           "Conffiles",
                           "Filename",
                           "Size",
-                          "MD5Sum",
+                          "MD5sum",
                           "SHA1",
                           "SHA256",
                           "SHA512",
                           "SHA1",
                           "SHA256",
                           "SHA512",