X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/9bd2313a5c7523501bcec398877489c5a1fc1415..87d468fe355c87325c943c40043a0bb236b2407f:/methods/store.cc diff --git a/methods/store.cc b/methods/store.cc index 29cf9e947..2ad0f0177 100644 --- a/methods/store.cc +++ b/methods/store.cc @@ -73,7 +73,7 @@ bool StoreMethod::Fetch(FetchItem *Itm) /*{{{*/ { if (OpenFileWithCompressorByName(From, Path, FileFd::ReadOnly, Prog) == false) return false; - if(From.FileSize() == 0) + if(From.IsCompressed() && From.FileSize() == 0) return _error->Error(_("Empty files can't be valid archives")); } else