diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-01-05 20:20:24 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-01-05 20:20:24 +0100 |
commit | 570590c0640f71c98893051420517894be8eb6eb (patch) | |
tree | 563eeacf3aa349c1c7366c073cfb99348ab1c6a8 /methods/file.cc | |
parent | b7c7eb099c8d228935f9c3fa0a7c788a4018bfb1 (diff) | |
parent | 5c6ceb4557cb6497dea827d1ec4e2615ccd53e50 (diff) |
merged from debian-experimental2
Diffstat (limited to 'methods/file.cc')
-rw-r--r-- | methods/file.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/file.cc b/methods/file.cc index 5025c996d..7ed4e6f60 100644 --- a/methods/file.cc +++ b/methods/file.cc @@ -83,7 +83,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; |