]> git.saurik.com Git - apt.git/blobdiff - methods/https.cc
calculate only expected hashes in methods
[apt.git] / methods / https.cc
index 70f6a1046d1799de2c1b2b8cabee04dbf3f9b319..81903b239c1a46ace6f10d0e1f24585ff0c2fefb 100644 (file)
@@ -443,7 +443,7 @@ bool HttpsMethod::Fetch(FetchItem *Itm)
       Res.LastModified = resultStat.st_mtime;
 
    // take hashes
       Res.LastModified = resultStat.st_mtime;
 
    // take hashes
-   Hashes Hash;
+   Hashes Hash(Itm->ExpectedHashes);
    FileFd Fd(Res.Filename, FileFd::ReadOnly);
    Hash.AddFD(Fd);
    Res.TakeHashes(Hash);
    FileFd Fd(Res.Filename, FileFd::ReadOnly);
    Hash.AddFD(Fd);
    Res.TakeHashes(Hash);