]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-worker.cc
Use xgettext --no-location in make update-pot
[apt.git] / apt-pkg / acquire-worker.cc
index 176772dde47d5c93a75bc0449390cbf7f56cd201..889768030f61ac576ae943fc21ed870d56ac5587 100644 (file)
@@ -407,7 +407,13 @@ bool pkgAcquire::Worker::RunMessages()
               else if (Owner->HashesRequired() == true)
                  consideredOkay = false;
               else
+              {
                  consideredOkay = true;
+                 // even if the hashes aren't usable to declare something secure
+                 // we can at least use them to declare it an integrity failure
+                 if (ExpectedHashes.empty() == false && ReceivedHashes != ExpectedHashes && _config->Find("Acquire::ForceHash").empty())
+                    consideredOkay = false;
+              }
 
               if (consideredOkay == true)
                  consideredOkay = Owner->VerifyDone(Message, Config);