diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-11-28 16:46:46 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-11-28 16:46:46 +0100 |
commit | ac3dee0e5091f19b77de96eec5241cb57c13f2a1 (patch) | |
tree | 2a82dd1c7a487f830bc4ec569c9f4e3775ddf4e8 /methods/copy.cc | |
parent | 318dd26ac9bdbb30bcd22201393dc73d8566b3cf (diff) | |
parent | 757f20941a19d5e1e9ebd74ecd5a4d5b0012644f (diff) |
merge with the debian tree
Diffstat (limited to 'methods/copy.cc')
-rw-r--r-- | methods/copy.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/copy.cc b/methods/copy.cc index 8dd0bd3f5..027b59f46 100644 --- a/methods/copy.cc +++ b/methods/copy.cc @@ -13,7 +13,6 @@ #include <apt-pkg/acquire-method.h> #include <apt-pkg/error.h> #include <apt-pkg/hashes.h> -#include <apt-pkg/fileutl.h> #include <sys/stat.h> #include <utime.h> @@ -80,11 +79,12 @@ bool CopyMethod::Fetch(FetchItem *Itm) To.OpFail(); return _error->Errno("utime",_("Failed to set modification time")); } - + Hashes Hash; FileFd Fd(Res.Filename, FileFd::ReadOnly); Hash.AddFD(Fd.Fd(), Fd.Size()); Res.TakeHashes(Hash); + URIDone(Res); return true; } |