summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2004-11-23 10:35:16 +0000
committerMichael Vogt <mvo@debian.org>2004-11-23 10:35:16 +0000
commitdf96f2e54f977e9c3d7531a97a0b84788ac3f44c (patch)
treeebb0d3369badff51a962c5eb790b5de35a7a5de7 /apt-pkg/acquire-item.cc
parent4f1d712ccd299f7e14d997ab41b1c56b91dab473 (diff)
* imported the changes from 0.5.30 to 0.5.30ubuntu2
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r--apt-pkg/acquire-item.cc5
1 files changed, 4 insertions, 1 deletions
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;