summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorEugene V. Lyubimkin <jackyf@1501-debian>2008-10-25 22:15:20 +0300
committerEugene V. Lyubimkin <jackyf@1501-debian>2008-10-25 22:15:20 +0300
commit27d5a2046999b86605968e7cbf0778dd95e63371 (patch)
treeba84dc8404a8e40533472fa732c365e5b2b16a0e /apt-pkg
parent4805f1cfd795c41db2a3c7fed56c15bb8c350c49 (diff)
Fixed error output when fallback'ed to uncompressed Packages/Sources.
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/acquire-item.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index b014092df..503ad7dae 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -568,9 +568,9 @@ pkgAcqIndex::pkgAcqIndex(pkgAcquire *Owner,
else
CompressionExtension = ".gz";
} else {
- CompressionExtension = comprExt;
+ CompressionExtension = (comprExt == "plain" ? "" : comprExt);
}
- Desc.URI = URI + (CompressionExtension == "plain" ? "" : CompressionExtension);
+ Desc.URI = URI + CompressionExtension;
Desc.Description = URIDesc;
Desc.Owner = this;