Procházet zdrojové kódy

give the APT::Cache::Generate option her effect back

David Kalnischkies před 16 roky
rodič
revize
320352e004
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      cmdline/apt-cache.cc

+ 3 - 1
cmdline/apt-cache.cc

@@ -1871,7 +1871,9 @@ int main(int argc,const char *argv[])					/*{{{*/
    if (!isatty(STDOUT_FILENO) && _config->FindI("quiet", -1) == -1)
    if (!isatty(STDOUT_FILENO) && _config->FindI("quiet", -1) == -1)
       _config->Set("quiet","1");
       _config->Set("quiet","1");
 
 
-//       if (_config->FindB("APT::Cache::Generate",true) == false)
+   if (_config->Exists("APT::Cache::Generate") == true)
+      _config->Set("pkgCacheFile::Generate", _config->FindB("APT::Cache::Generate", true));
+
    if (CmdL.DispatchArg(CmdsA,false) == false && _error->PendingError() == false)
    if (CmdL.DispatchArg(CmdsA,false) == false && _error->PendingError() == false)
       CmdL.DispatchArg(CmdsB);
       CmdL.DispatchArg(CmdsB);