From 8d1cb6da6e21302c654da3f09de3975af7e4a11f Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Mon, 6 Jun 2016 17:58:00 +0200 Subject: eipp: add Allow-Temporary-Remove-of-Essentials A rather special need option, but the internal planer supports this and we have a testcase for it & sometimes it is hit (as a bug through). The option itself mostly serves as a reminder for implementors that they should be careful with removes and especially temporary removes if they perform any. --- apt-pkg/packagemanager.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apt-pkg/packagemanager.cc') diff --git a/apt-pkg/packagemanager.cc b/apt-pkg/packagemanager.cc index d5afceb6d..a61c5f7a9 100644 --- a/apt-pkg/packagemanager.cc +++ b/apt-pkg/packagemanager.cc @@ -1045,6 +1045,8 @@ pkgPackageManager::OrderResult pkgPackageManager::OrderInstall() flags |= EIPP::Request::NO_IMMEDIATE_CONFIGURATION; else if (_config->FindB("APT::Immediate-Configure-All", false)) flags |= EIPP::Request::IMMEDIATE_CONFIGURATION_ALL; + else if (_config->FindB("APT::Force-LoopBreak", false)) + flags |= EIPP::Request::ALLOW_TEMPORARY_REMOVE_OF_ESSENTIALS; if (EIPP::OrderInstall(planer.c_str(), this, flags, nullptr)) return Completed; -- cgit v1.2.3