diff options
author | Eugene V. Lyubimkin <jackyf@1501-debian> | 2008-10-25 22:15:20 +0300 |
---|---|---|
committer | Eugene V. Lyubimkin <jackyf@1501-debian> | 2008-10-25 22:15:20 +0300 |
commit | 27d5a2046999b86605968e7cbf0778dd95e63371 (patch) | |
tree | ba84dc8404a8e40533472fa732c365e5b2b16a0e | |
parent | 4805f1cfd795c41db2a3c7fed56c15bb8c350c49 (diff) |
Fixed error output when fallback'ed to uncompressed Packages/Sources.
-rw-r--r-- | apt-pkg/acquire-item.cc | 4 |
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; |