ソースを参照

* cmdline/apt-get.cc:
- only error out if both "APT::Get::Autoremove" is set to true and "APT::Get::Remove" to false, in this case the the save options wins and apt will abort

Michael Vogt 20 年 前
コミット
c97fd4ec4a
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 2 1
      cmdline/apt-get.cc

+ 2 - 1
cmdline/apt-get.cc

@@ -1398,7 +1398,8 @@ bool DoAutomaticRemove(CacheFile &Cache)
    if(Debug)
       std::cout << "DoAutomaticRemove()" << std::endl;
 
-   if (_config->FindB("APT::Get::Remove",true) == false)
+   if (_config->FindB("APT::Get::AutomaticRemove") &&
+       _config->FindB("APT::Get::Remove",true) == false)
       return _error->Error(_("We are not supposed to delete stuff, can't "
 			     "start AutoRemover"));