]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexrecords.cc
DropPrivs: Hard-fail if the user does not exist
[apt.git] / apt-pkg / indexrecords.cc
index 5b53e796d8497e534498688a765bab95c9342a7a..e97ea0ac9dfafb3c5f6048fabc0889a6b178cc57 100644 (file)
@@ -116,6 +116,14 @@ bool indexRecords::Load(const string Filename)                             /*{{{*/
             indexRecords::checkSum *Sum = new indexRecords::checkSum;
             Sum->MetaKeyFilename = Name;
             Sum->Size = Size;
+#if __GNUC__ >= 4
+       #pragma GCC diagnostic push
+       #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+            Sum->Hash = HashString(HashString::SupportedHashes()[i],Hash);
+#if __GNUC__ >= 4
+       #pragma GCC diagnostic pop
+#endif
             Entries[Name] = Sum;
          }
          Entries[Name]->Hashes.push_back(HashString(HashString::SupportedHashes()[i],Hash));