summaryrefslogtreecommitdiff
path: root/methods/store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'methods/store.cc')
-rw-r--r--methods/store.cc2
1 files changed, 1 insertions, 1 deletions
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