HCoop
/
ntk
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merged lp:~mvo/apt/add-missing-dsc-hashes
[ntk/apt.git]
/
methods
/
copy.cc
diff --git
a/methods/copy.cc
b/methods/copy.cc
index
94467e0
..
e81d002
100644
(file)
--- a/
methods/copy.cc
+++ b/
methods/copy.cc
@@
-12,6
+12,7
@@
#include <config.h>
#include <apt-pkg/fileutl.h>
#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>
#include <apt-pkg/acquire-method.h>
#include <apt-pkg/error.h>
#include <apt-pkg/hashes.h>
@@
-37,7
+38,7
@@
class CopyMethod : public pkgAcqMethod
bool CopyMethod::Fetch(FetchItem *Itm)
{
URI Get = Itm->Uri;
bool CopyMethod::Fetch(FetchItem *Itm)
{
URI Get = Itm->Uri;
- string File = Get.Path;
+ st
d::st
ring File = Get.Path;
// Stat the file and send a start message
struct stat Buf;
// Stat the file and send a start message
struct stat Buf;
@@
-84,7
+85,7
@@
bool CopyMethod::Fetch(FetchItem *Itm)
Hashes Hash;
FileFd Fd(Res.Filename, FileFd::ReadOnly);
Hashes Hash;
FileFd Fd(Res.Filename, FileFd::ReadOnly);
- Hash.AddFD(Fd
.Fd(), Fd.Size()
);
+ Hash.AddFD(Fd);
Res.TakeHashes(Hash);
URIDone(Res);
Res.TakeHashes(Hash);
URIDone(Res);