From a21aca106ce93e8a2841d4a2c7a8432f9dfc7b6d Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Mon, 6 Jun 2016 15:04:42 +0200 Subject: eipp: implement Immediate-Configuration flag APT has 3 modes: no immediate configuration, all packages are configured immediately and its default mode of configuring essentials and pseudo-essentials immediately only. While this seems like a job of different planers at first, it might be handy to have it as an option, too, in case a planer (like apts internal one) supports different modes where the introduction of individual planers would be counter intuitive. --- apt-pkg/edsp.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'apt-pkg/edsp.h') diff --git a/apt-pkg/edsp.h b/apt-pkg/edsp.h index 271cbb6a8..e1ffdf598 100644 --- a/apt-pkg/edsp.h +++ b/apt-pkg/edsp.h @@ -239,8 +239,17 @@ namespace EDSP /*{{{*/ class pkgPackageManager; namespace EIPP /*{{{*/ { + namespace Request + { + enum Flags + { + IMMEDIATE_CONFIGURATION_ALL = (1 << 0), /*!< try to keep the least amount of packages unconfigured as possible at all times */ + NO_IMMEDIATE_CONFIGURATION = (1 << 1), /*!< do not perform immediate configuration at all */ + }; + } + APT_HIDDEN bool WriteRequest(pkgDepCache &Cache, FileFd &output, - unsigned int const version, OpProgress * const Progress); + unsigned int const flags, OpProgress * const Progress); APT_HIDDEN bool WriteScenario(pkgDepCache &Cache, FileFd &output, OpProgress * const Progress); -- cgit v1.2.3