- merge repomd branch
[apt.git] / apt-pkg / init.cc
index bdac517..4c75b83 100644 (file)
@@ -77,7 +77,6 @@ bool pkgInitConfig(Configuration &Cnf)
    Cnf.Set("Dir::Etc::parts","apt.conf.d");
    Cnf.Set("Dir::Etc::preferences","preferences");
    Cnf.Set("Dir::Bin::methods",LIBDIR "/apt/methods");
-   Cnf.Set("Acquire::ComprExtension", ".bz2");
              
    bool Res = true;
    
@@ -158,6 +157,11 @@ bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys)
         return _error->Error(_("Unable to determine a suitable system type"));
    }
 
+   // LORG:2006-02-06
+   if (Cnf.Find("APT::DistroVersion", "").empty()) {
+       Cnf.Set("APT::DistroVersion", Sys->DistroVer(Cnf));
+   }
+
    // CNC:2003-03-15
    bool Ret = Sys->Initialize(Cnf);
 #ifdef WITH_LUA