apt-pkg/acquire-item.cc: Fix handling of local (file:/) sources
authormartin@piware.de <>
Thu, 24 Jun 2010 20:43:07 +0000 (22:43 +0200)
committermartin@piware.de <>
Thu, 24 Jun 2010 20:43:07 +0000 (22:43 +0200)
apt-pkg/acquire-item.cc

index 9abdb0a..a506aa9 100644 (file)
@@ -757,7 +757,7 @@ void pkgAcqIndex::Done(string Message,unsigned long Size,string Hash,
    string decompProg;
 
    // If we enable compressed indexes and already have gzip, keep it
-   if (_config->FindB("Acquire::GzipIndexes",false) && compExt == "gz") {
+   if (_config->FindB("Acquire::GzipIndexes",false) && compExt == "gz" && !Local) {
       string FinalFile = _config->FindDir("Dir::State::lists");
       FinalFile += URItoFileName(RealURI) + ".gz";
       //if(Debug)