-void CopyMethod::CalculateHashes(FetchResult &Res)
-{
- Hashes Hash;
- FileFd::CompressMode CompressMode = FileFd::None;
- if (_config->FindB("Acquire::GzipIndexes", false) == true)
- CompressMode = FileFd::Extension;
-
- FileFd Fd(Res.Filename, FileFd::ReadOnly, CompressMode);
- Hash.AddFD(Fd);
- Res.TakeHashes(Hash);
-}