]> git.saurik.com Git - apt.git/blobdiff - methods/gzip.cc
show dependencies of essential packages which are going to remove
[apt.git] / methods / gzip.cc
index 22cae94244b62e067717d9a2cdf77b832ed07ef7..f1c76066e403810f7cbe4733d1c97aec0249bd1d 100644 (file)
@@ -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
    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);   
       return false;
 
    FileFd To(Itm->DestFile,FileFd::WriteAtomic);