]> git.saurik.com Git - apt.git/blobdiff - methods/ftp.cc
calculate only expected hashes in methods
[apt.git] / methods / ftp.cc
index 7764acf6a220f705b20257efcbb31c3279b30f08..92d8573f1071839744f88f8fd4fb211f91a7c352 100644 (file)
@@ -1064,7 +1064,7 @@ bool FtpMethod::Fetch(FetchItem *Itm)
    }
    
    // Open the file
-   Hashes Hash;
+   Hashes Hash(Itm->ExpectedHashes);
    {
       FileFd Fd(Itm->DestFile,FileFd::WriteAny);
       if (_error->PendingError() == true)