X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/be4401bfa4a240bbc894e1bfeb1e1e8d63fc7b18..ac2b6b5e14b9f45ef78b1b51ca8fa60a3fca5818:/methods/gzip.cc diff --git a/methods/gzip.cc b/methods/gzip.cc index be4f82e6f..908407b81 100644 --- a/methods/gzip.cc +++ b/methods/gzip.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: gzip.cc,v 1.4 1998/11/01 05:27:43 jgg Exp $ +// $Id: gzip.cc,v 1.6 1998/11/11 06:54:19 jgg Exp $ /* ###################################################################### GZip method - Take a file URI in and decompress it into the target @@ -36,6 +36,10 @@ class GzipMethod : public pkgAcqMethod bool GzipMethod::Fetch(FetchItem *Itm) { URI Get = Itm->Uri; + + FetchResult Res; + Res.Filename = Itm->DestFile; + URIStart(Res); // Open the source and destintation files FileFd From(Get.Path,FileFd::ReadOnly); @@ -96,9 +100,7 @@ bool GzipMethod::Fetch(FetchItem *Itm) return _error->Errno("utime","Failed to set modification time"); // Return a Done response - FetchResult Res; Res.LastModified = Buf.st_mtime; - Res.Filename = Itm->DestFile; URIDone(Res); return true;