diff options
Diffstat (limited to 'methods')
-rw-r--r-- | methods/ftp.cc | 4 | ||||
-rw-r--r-- | methods/gzip.cc | 4 | ||||
-rw-r--r-- | methods/http.cc | 4 | ||||
-rw-r--r-- | methods/rsh.cc | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/methods/ftp.cc b/methods/ftp.cc index edd150699..a3a7cd08a 100644 --- a/methods/ftp.cc +++ b/methods/ftp.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: ftp.cc,v 1.24 2001/03/06 07:15:29 jgg Exp $ +// $Id: ftp.cc,v 1.25 2001/03/13 06:51:46 jgg Exp $ /* ###################################################################### FTP Aquire Method - This is the FTP aquire method for APT. @@ -1056,7 +1056,7 @@ bool FtpMethod::Fetch(FetchItem *Itm) } Res.LastModified = FailTime; - Res.MD5Sum = Hash.MD5.Result(); + Res.TakeHashes(Hash); // Timestamp struct utimbuf UBuf; diff --git a/methods/gzip.cc b/methods/gzip.cc index 3f0efab4f..35ff692f4 100644 --- a/methods/gzip.cc +++ b/methods/gzip.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: gzip.cc,v 1.14 2001/03/11 22:37:35 jgg Exp $ +// $Id: gzip.cc,v 1.15 2001/03/13 06:51:46 jgg Exp $ /* ###################################################################### GZip method - Take a file URI in and decompress it into the target @@ -142,7 +142,7 @@ bool GzipMethod::Fetch(FetchItem *Itm) // Return a Done response Res.LastModified = Buf.st_mtime; Res.Size = Buf.st_size; - Res.MD5Sum = Hash.MD5.Result(); + Res.TakeHashes(Hash); URIDone(Res); diff --git a/methods/http.cc b/methods/http.cc index 0c520b33c..342b27993 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: http.cc,v 1.50 2001/03/06 07:15:29 jgg Exp $ +// $Id: http.cc,v 1.51 2001/03/13 06:51:46 jgg Exp $ /* ###################################################################### HTTP Aquire Method - This is the HTTP aquire method for APT. @@ -1109,7 +1109,7 @@ int HttpMethod::Loop() // Send status to APT if (Result == true) { - Res.MD5Sum = Server->In.Hash->MD5.Result(); + Res.TakeHashes(*Server->In.Hash); URIDone(Res); } else diff --git a/methods/rsh.cc b/methods/rsh.cc index 5326e5098..619cd9508 100644 --- a/methods/rsh.cc +++ b/methods/rsh.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: rsh.cc,v 1.3 2001/03/06 07:15:29 jgg Exp $ +// $Id: rsh.cc,v 1.4 2001/03/13 06:51:46 jgg Exp $ /* ###################################################################### RSH method - Transfer files via rsh compatible program @@ -462,7 +462,7 @@ bool RSHMethod::Fetch(FetchItem *Itm) } Res.LastModified = FailTime; - Res.MD5Sum = Hash.MD5.Result(); + Res.TakeHashes(Hash); // Timestamp struct utimbuf UBuf; |