]> git.saurik.com Git - apt.git/commitdiff
Fixed error output when fallback'ed to uncompressed Packages/Sources.
authorEugene V. Lyubimkin <jackyf@1501-debian>
Sat, 25 Oct 2008 19:15:20 +0000 (22:15 +0300)
committerEugene V. Lyubimkin <jackyf@1501-debian>
Sat, 25 Oct 2008 19:15:20 +0000 (22:15 +0300)
apt-pkg/acquire-item.cc

index b014092dfabc7fa59cb9b485e67d2a4b00743f1f..503ad7dae9f5dedaab73783a3388ad713309dc63 100644 (file)
@@ -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;