]> 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 fe2918469d58373d09a099c60fb58e0ffe55efab..e81d0022bd5b5db0133793f901a94c6221de1d8e 100644 (file)
@@ -12,6 +12,7 @@
 #include <config.h>
 
 #include <apt-pkg/fileutl.h>
+#include <apt-pkg/strutl.h>
 #include <apt-pkg/acquire-method.h>
 #include <apt-pkg/error.h>
 #include <apt-pkg/hashes.h>
@@ -84,7 +85,7 @@ bool CopyMethod::Fetch(FetchItem *Itm)
    
    Hashes Hash;
    FileFd Fd(Res.Filename, FileFd::ReadOnly);
-   Hash.AddFD(Fd.Fd(), Fd.Size());
+   Hash.AddFD(Fd);
    Res.TakeHashes(Hash);
 
    URIDone(Res);