]> git.saurik.com Git - apt.git/blobdiff - methods/copy.cc
trigger the usage of the fallback code for kfreebsd also in the
[apt.git] / methods / copy.cc
index f8d58e479703b66bb2075480abb0b6fea15da534..e81d0022bd5b5db0133793f901a94c6221de1d8e 100644 (file)
@@ -85,7 +85,7 @@ bool CopyMethod::Fetch(FetchItem *Itm)
    
    Hashes Hash;
    FileFd Fd(Res.Filename, FileFd::ReadOnly);
    
    Hashes Hash;
    FileFd Fd(Res.Filename, FileFd::ReadOnly);
-   Hash.AddFD(Fd.Fd(), Fd.Size());
+   Hash.AddFD(Fd);
    Res.TakeHashes(Hash);
 
    URIDone(Res);
    Res.TakeHashes(Hash);
 
    URIDone(Res);