]> git.saurik.com Git - apt.git/blobdiff - methods/https.cc
merged from debian-experimental2
[apt.git] / methods / https.cc
index 335699907a8ee5f70bb3ee540df492b84c6b7ae3..317c8a5872b2bf970aabc63d2d0ba0e023da6224 100644 (file)
@@ -314,7 +314,7 @@ bool HttpsMethod::Fetch(FetchItem *Itm)
    // take hashes
    Hashes Hash;
    FileFd Fd(Res.Filename, FileFd::ReadOnly);
-   Hash.AddFD(Fd.Fd(), Fd.Size());
+   Hash.AddFD(Fd);
    Res.TakeHashes(Hash);
    
    // keep apt updated