diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-06-06 15:04:42 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-06-27 11:57:12 +0200 |
commit | a21aca106ce93e8a2841d4a2c7a8432f9dfc7b6d (patch) | |
tree | 2a535fc3d6c5aabba64709dc3d3be82cf90d66a1 /apt-pkg/edsp.h | |
parent | 14bed2c0108a99d68f453ff61273d5ae59a5c3f0 (diff) |
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.
Diffstat (limited to 'apt-pkg/edsp.h')
-rw-r--r-- | apt-pkg/edsp.h | 11 |
1 files changed, 10 insertions, 1 deletions
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); |