]> git.saurik.com Git - apt.git/blobdiff - methods/gzip.cc
merged from debian-experimental2
[apt.git] / methods / gzip.cc
index f4bb052e26191073d1a2822a66853d2e2cdc88f7..6ab6548efb56f82edea77f4de17763e14d3c2953 100644 (file)
@@ -41,14 +41,14 @@ class GzipMethod : public pkgAcqMethod
 bool GzipMethod::Fetch(FetchItem *Itm)
 {
    URI Get = Itm->Uri;
-   string Path = Get.Host + Get.Path; // To account for relative paths
+   std::string Path = Get.Host + Get.Path; // To account for relative paths
    
    FetchResult Res;
    Res.Filename = Itm->DestFile;
    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"));