Просмотр исходного кода

* cmdline/apt-get.cc:
- fix problem that AutomaticRemove can't be set permanently via preferences

Michael Vogt лет назад: 20
Родитель
Сommit
b255ff1a11
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      cmdline/apt-get.cc

+ 1 - 2
cmdline/apt-get.cc

@@ -1393,7 +1393,7 @@ bool DoUpdate(CommandLine &CmdL)
 bool DoAutomaticRemove(CacheFile &Cache)
 {
    bool Debug = _config->FindI("Debug::pkgAutoRemove",false);
-   bool doAutoRemove = _config->FindB("APT::Get::AutomaticRemove");
+   bool doAutoRemove = _config->FindB("APT::Get::AutomaticRemove", false);
    pkgDepCache::ActionGroup group(*Cache);
    
 
@@ -2560,7 +2560,6 @@ void GetInitialize()
    _config->Set("APT::Get::Fix-Broken",false);
    _config->Set("APT::Get::Force-Yes",false);
    _config->Set("APT::Get::List-Cleanup",true);
-   _config->Set("APT::Get::AutomaticRemove",false);
 }
 									/*}}}*/
 // SigWinch - Window size change signal handler				/*{{{*/