]> git.saurik.com Git - apt.git/blobdiff - methods/gzip.cc
merged from donkult
[apt.git] / methods / gzip.cc
index f1c76066e403810f7cbe4733d1c97aec0249bd1d..fc4e1ecfd68c93cb9824ac74a7a6a3d2eadd662d 100644 (file)
@@ -48,9 +48,8 @@ bool GzipMethod::Fetch(FetchItem *Itm)
    // Open the source and destination files
    FileFd From(Path,FileFd::ReadOnlyGzip);
 
-   // FIXME add an error message saying that empty files can't be valid archives
    if(From.FileSize() == 0)
-      return false;
+      return _error->Error(_("Empty files can't be valid archives"));
 
    FileFd To(Itm->DestFile,FileFd::WriteAtomic);   
    To.EraseOnFailure();