From 18ef0a788491295e833962feb518c276923a0e43 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:54:25 +0000 Subject: Fixed up dpkginit and acquire stuff.. Author: jgg Date: 1999-07-30 05:36:52 GMT Fixed up dpkginit and acquire stuff.. --- methods/gzip.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'methods') diff --git a/methods/gzip.cc b/methods/gzip.cc index b9808b30e..f1bf60ce6 100644 --- a/methods/gzip.cc +++ b/methods/gzip.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: gzip.cc,v 1.7 1999/01/27 02:48:53 jgg Exp $ +// $Id: gzip.cc,v 1.8 1999/07/30 05:37:00 jgg Exp $ /* ###################################################################### GZip method - Take a file URI in and decompress it into the target @@ -99,8 +99,12 @@ bool GzipMethod::Fetch(FetchItem *Itm) if (utime(Itm->DestFile.c_str(),&TimeBuf) != 0) return _error->Errno("utime","Failed to set modification time"); + if (stat(Itm->DestFile.c_str(),&Buf) != 0) + return _error->Errno("stat","Failed to stat"); + // Return a Done response Res.LastModified = Buf.st_mtime; + Res.Size = Buf.st_size; URIDone(Res); return true; -- cgit v1.2.3