]> git.saurik.com Git - apt.git/blobdiff - methods/server.cc
calculate only expected hashes in methods
[apt.git] / methods / server.cc
index 91ec824d115120c2c62ccf996efa80bfbd6a93bf..e403f10713c6c1c0acc69409237d48a36fa653cf 100644 (file)
@@ -357,7 +357,7 @@ ServerMethod::DealWithHeaders(FetchResult &Res)
    FailFd = File->Fd();
    FailTime = Server->Date;
 
-   if (Server->InitHashes(*File) == false)
+   if (Server->InitHashes(*File, Queue->ExpectedHashes) == false)
    {
       _error->Errno("read",_("Problem hashing file"));
       return ERROR_NOT_FROM_SERVER;