From: Michael Vogt Date: Thu, 28 Feb 2013 17:28:44 +0000 (+0100) Subject: re-add compat pkgSrcRecords::File::MD5Hash X-Git-Tag: 1.1.exp1~47^2~2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/a1b5561a036ebbe416cccfb2bd476a838ddb6286 re-add compat pkgSrcRecords::File::MD5Hash --- diff --git a/apt-pkg/deb/debsrcrecords.cc b/apt-pkg/deb/debsrcrecords.cc index 37d38ee5b..f5fb2da4a 100644 --- a/apt-pkg/deb/debsrcrecords.cc +++ b/apt-pkg/deb/debsrcrecords.cc @@ -157,6 +157,9 @@ bool debSrcRecordParser::Files(std::vector &List) SourceHashFields[i].first); // assign full hash string F.Hash = HashString(SourceHashFields[i].second, RawHash).toStr(); + // API compat hack + if(SourceHashFields[i].second == "MD5Sum") + F.MD5Hash = RawHash; // Parse the size and append the directory F.Size = atoi(Size.c_str()); diff --git a/apt-pkg/srcrecords.h b/apt-pkg/srcrecords.h index 7cb490079..796d2e1bd 100644 --- a/apt-pkg/srcrecords.h +++ b/apt-pkg/srcrecords.h @@ -31,6 +31,7 @@ class pkgSrcRecords // Describes a single file struct File { + std::string MD5Hash; std::string Hash; unsigned long Size; std::string Path;