]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-item.cc
* imported changes from apt--main
[apt.git] / apt-pkg / acquire-item.cc
index bf19290c6c4089249d097c2eeb8c3a33e9d3c9c0..6227888b6a933e71f2ba0c539ed7e63ef7a034d6 100644 (file)
@@ -144,7 +144,10 @@ pkgAcqIndex::pkgAcqIndex(pkgAcquire *Owner,
    DestFile += URItoFileName(URI);
 
    // Create the item
-   Desc.URI = URI + ".bz2"; 
+   if(FileExists("/usr/bin/bzip2"))
+      Desc.URI = URI + ".bz2"; 
+   else
+      Desc.URI = URI + ".gz"; 
    Desc.Description = URIDesc;
    Desc.Owner = this;
    Desc.ShortDesc = ShortDesc;