From df96f2e54f977e9c3d7531a97a0b84788ac3f44c Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 23 Nov 2004 10:35:16 +0000 Subject: * imported the changes from 0.5.30 to 0.5.30ubuntu2 --- apt-pkg/acquire-item.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apt-pkg') diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index bf19290c6..6227888b6 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -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; -- cgit v1.2.3