X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/ab588494d571f7bd30a0f525864241c760ab74fa..4260fd3972cc0c01e6cbc825063c06311d440f9b:/methods/gzip.cc 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);