summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2013-01-14 07:59:52 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2013-01-14 07:59:52 +0100
commit64680d3bf12db6599e93f950546e380e0bd5ddf4 (patch)
treeb2a09005541d931d7d787b05558d71c3371b31d2 /apt-pkg
parentcb6a2b3eaca4353d7f490fb360b98c08d64a2d8c (diff)
fix skipping of already downloaded files and add some FIXMEs
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/deb/debsrcrecords.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/apt-pkg/deb/debsrcrecords.cc b/apt-pkg/deb/debsrcrecords.cc
index 45cc0ae82..c620c2298 100644
--- a/apt-pkg/deb/debsrcrecords.cc
+++ b/apt-pkg/deb/debsrcrecords.cc
@@ -116,16 +116,21 @@ bool debSrcRecordParser::Files(std::vector<pkgSrcRecords::File> &List)
{
List.erase(List.begin(),List.end());
+ // FIXME: build string dynamically from
+ // Hashes::SupportedHashes
const char *hash_field[] = { "Checksums-Sha512",
"Checksums-Sha256",
"Checksums-Sha1",
"Files", // historic name
NULL,
};
- const char *hash_type[] = { "Sha512",
- "Sha256",
- "Sha1",
- "md5sum",
+
+ // FIXME: use string from Hashes::SupportedHashes
+ // FIXME2: this is case senstivie
+ const char *hash_type[] = { "SHA512",
+ "SHA256",
+ "SHA1",
+ "MD5Sum",
NULL,
};