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 /cmdline | |
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 'cmdline')
-rw-r--r-- | cmdline/apt-internal-planer.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmdline/apt-internal-planer.cc b/cmdline/apt-internal-planer.cc index 676d84001..0657be3b2 100644 --- a/cmdline/apt-internal-planer.cc +++ b/cmdline/apt-internal-planer.cc @@ -150,6 +150,8 @@ int main(int argc,const char *argv[]) /*{{{*/ unsigned int flags; if (EIPP::ReadRequest(input, actions, flags) == false) DIE("Parsing the request failed!"); + _config->Set("APT::Immediate-Configure", (flags & EIPP::Request::NO_IMMEDIATE_CONFIGURATION) == 0); + _config->Set("APT::Immediate-Configure-All", (flags & EIPP::Request::IMMEDIATE_CONFIGURATION_ALL) != 0); EDSP::WriteProgress(5, "Read scenario…", output); |