]> git.saurik.com Git - apt.git/blobdiff - methods/gzip.cc
usage of Skipping in pipes can't work, so we ignore-read instead
[apt.git] / methods / gzip.cc
index a51497948646d1d0ac98e2bb70017f1cbbcaaf7b..6ab6548efb56f82edea77f4de17763e14d3c2953 100644 (file)
@@ -48,7 +48,7 @@ bool GzipMethod::Fetch(FetchItem *Itm)
    URIStart(Res);
    
    // Open the source and destination files
-   FileFd From(Path,FileFd::ReadOnlyGzip);
+   FileFd From(Path,FileFd::ReadOnly, FileFd::Gzip);
 
    if(From.FileSize() == 0)
       return _error->Error(_("Empty files can't be valid archives"));