summaryrefslogtreecommitdiff
path: root/methods/gzip.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-10-29 10:37:35 -0400
committerMichael Vogt <michael.vogt@ubuntu.com>2010-10-29 10:37:35 -0400
commit0e1945c14bee88013ad03c3b58e088c704f7ffa9 (patch)
treef5fc881fe41d66b4831dc9aad6a61b8a5f48b178 /methods/gzip.cc
parent8a91e5e7a018648178dc2bc399187496734a0639 (diff)
parent71626337ad5fe00a5f9b753829445084e8f5e790 (diff)
merged from debian
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);