X-Git-Url: https://git.hcoop.net/ntk/apt.git/blobdiff_plain/71ecaad29d8066a494f516efc5efd80860653fe2..220cf74e3c33fefb9f90853a22a5f828a15ff521:/methods/file.cc diff --git a/methods/file.cc b/methods/file.cc index 5025c996..12db6220 100644 --- a/methods/file.cc +++ b/methods/file.cc @@ -5,7 +5,7 @@ File URI method for APT - This simply checks that the file specified exists, if so the relevent + This simply checks that the file specified exists, if so the relevant information is returned. If a .gz filename is specified then the file name with .gz removed will also be checked and information about it will be returned in Alt-* @@ -21,8 +21,9 @@ #include #include +#include #include -#include + #include /*}}}*/ @@ -83,7 +84,7 @@ bool FileMethod::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); return true;