]> git.saurik.com Git - apt.git/blobdiff - methods/store.cc
Merge branch 'fix-https-noproxy' of github.com:patcable/apt
[apt.git] / methods / store.cc
index 29cf9e947d012883cda7a3fd3dadec6d66a12ae9..2ad0f0177675a6ac50e4ee8a7d2dbecdbfac3a86 100644 (file)
@@ -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