X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/4260fd3972cc0c01e6cbc825063c06311d440f9b..56eb3b11976ad8a2fbba50772f0196df0ac2ac11:/methods/bzip2.cc diff --git a/methods/bzip2.cc b/methods/bzip2.cc index ccc3669a2..42932dded 100644 --- a/methods/bzip2.cc +++ b/methods/bzip2.cc @@ -56,9 +56,8 @@ bool Bzip2Method::Fetch(FetchItem *Itm) // Open the source and destination files FileFd From(Path,FileFd::ReadOnly); - // 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")); int GzOut[2]; if (pipe(GzOut) < 0)