]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-cmndline.cc
disable updating insecure repositories in apt by default
[apt.git] / apt-private / private-cmndline.cc
index 1299b85f091400c5d081af7a4fdd0ee65f832409..9f019121cec31dc14166c10c7ac073218fbae352 100644 (file)
@@ -324,9 +324,15 @@ static void BinarySpecificConfiguration(char const * const Binary) /*{{{*/
    std::string const binary = flNotDir(Binary);
    if (binary == "apt" || binary == "apt-config")
    {
+      _config->CndSet("Binary::apt::APT::Color", true);
       _config->CndSet("Binary::apt::APT::Cache::Show::Version", 2);
       _config->CndSet("Binary::apt::APT::Cache::AllVersions", false);
       _config->CndSet("Binary::apt::APT::Cache::ShowVirtuals", true);
+      _config->CndSet("Binary::apt::APT::Cache::Search::Version", 2);
+      _config->CndSet("Binary::apt::APT::Get::Upgrade-Allow-New", true);
+      _config->CndSet("Binary::apt::APT::Cmd::Show-Update-Stats", true);
+      _config->CndSet("Binary::apt::DPkg::Progress-Fancy", true);
+      _config->CndSet("Binary::apt::Acquire::AllowInsecureRepositories", false);
    }
 
    _config->Set("Binary", binary);