]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexrecords.cc
pkgPolicy: Introduce storage and helpers for per-version pins
[apt.git] / apt-pkg / indexrecords.cc
index c26868cac3d22a73ca036fbbb393597344580565..7e6da9558e017af0ea799b32bc3aa958891d5d03 100644 (file)
@@ -121,9 +121,7 @@ bool indexRecords::Load(const string Filename)                              /*{{{*/
             indexRecords::checkSum *Sum = new indexRecords::checkSum;
             Sum->MetaKeyFilename = Name;
             Sum->Size = Size;
-           std::string SizeStr;
-           strprintf(SizeStr, "%llu", Size);
-           Sum->Hashes.push_back(HashString("Checksum-FileSize", SizeStr));
+           Sum->Hashes.FileSize(Size);
             APT_IGNORE_DEPRECATED(Sum->Hash = HashString(HashString::SupportedHashes()[i],Hash);)
             Entries[Name] = Sum;
          }