]> git.saurik.com Git - apt.git/commitdiff
re-add compat pkgSrcRecords::File::MD5Hash
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 28 Feb 2013 17:28:44 +0000 (18:28 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 28 Feb 2013 17:28:44 +0000 (18:28 +0100)
apt-pkg/deb/debsrcrecords.cc
apt-pkg/srcrecords.h

index 37d38ee5ba8f7e77d04aa9dac5bb57d01ae93f03..f5fb2da4a843a54c4cee7c1d1b6bac733619d8d7 100644 (file)
@@ -157,6 +157,9 @@ bool debSrcRecordParser::Files(std::vector<pkgSrcRecords::File> &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());
index 7cb490079113198d42e741b5296f1e0a4528a36a..796d2e1bd28e60f7f0987ca95dad4518838b318d 100644 (file)
@@ -31,6 +31,7 @@ class pkgSrcRecords
    // Describes a single file
    struct File
    {
+      std::string MD5Hash;
       std::string Hash;
       unsigned long Size;
       std::string Path;