summaryrefslogtreecommitdiff
path: root/methods/gzip.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2010-10-28 21:19:57 +0200
committerMichael Vogt <mvo@debian.org>2010-10-28 21:19:57 +0200
commitf71b3b984f02daf49cba1141373da19d233d3fae (patch)
tree5c0733cbc93dfea370b65bbb65ba97f594833dc4 /methods/gzip.cc
parentc1fa50e1502b2f3ab2ec44cad00c3af3f910615a (diff)
parent4b625b95a04a9d73c6682a3f9354112a394bb674 (diff)
merged from donkult
Diffstat (limited to 'methods/gzip.cc')
-rw-r--r--methods/gzip.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/gzip.cc b/methods/gzip.cc
index 22cae9424..f1c76066e 100644
--- a/methods/gzip.cc
+++ b/methods/gzip.cc
@@ -49,7 +49,7 @@ bool GzipMethod::Fetch(FetchItem *Itm)
FileFd From(Path,FileFd::ReadOnlyGzip);
// FIXME add an error message saying that empty files can't be valid archives
- if(From.Size() == 0)
+ if(From.FileSize() == 0)
return false;
FileFd To(Itm->DestFile,FileFd::WriteAtomic);