summaryrefslogtreecommitdiff
path: root/methods/gzip.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:54:25 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:54:25 +0000
commit18ef0a788491295e833962feb518c276923a0e43 (patch)
treedc84abad0104171abf24f95a76c2e527a78ddf62 /methods/gzip.cc
parente3bf76d14b69295feb066e4f4f8dffb3b964e9a1 (diff)
Fixed up dpkginit and acquire stuff..
Author: jgg Date: 1999-07-30 05:36:52 GMT Fixed up dpkginit and acquire stuff..
Diffstat (limited to 'methods/gzip.cc')
-rw-r--r--methods/gzip.cc6
1 files changed, 5 insertions, 1 deletions
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;