]> git.saurik.com Git - apt.git/blobdiff - methods/gzip.cc
calculate only expected hashes in methods
[apt.git] / methods / gzip.cc
index 387c05f2ec99304eb0f259bb2b9b28d35a4fa654..65519633c07b8af6ed8b1829afab69c9117b2f57 100644 (file)
@@ -91,7 +91,7 @@ bool GzipMethod::Fetch(FetchItem *Itm)
       return false;
 
    // Read data from source, generate checksums and write
-   Hashes Hash;
+   Hashes Hash(Itm->ExpectedHashes);
    bool Failed = false;
    while (1) 
    {