fix: retain exact APT configure action without pending package repair
Rust development slice / linux (push) Failing after 6s
Rust development slice / linux (push) Failing after 6s
This commit is contained in:
@@ -890,6 +890,9 @@ def check_preconditions(transaction, baseline):
|
||||
|
||||
def apt_config():
|
||||
"""Constant bytes: no job string, URL, shell interpolation, global hooks."""
|
||||
# APT's default selection rewrite erases explicit Configure operations and
|
||||
# substitutes --configure --pending. Keep the exact target Configure instead
|
||||
# while both pending modes remain disabled (upstream dpkgpm.cc, APT 2.7.14).
|
||||
return ('''Dir::Etc::parts "/var/lib/rmm-apt-transaction/active/empty";
|
||||
Dir::Etc::main "/dev/null";
|
||||
Dir::Etc::sourcelist "/dev/null";
|
||||
@@ -920,6 +923,7 @@ APT::Get::allow-Remove-Essential "false";
|
||||
DPkg::Lock::Timeout "10";
|
||||
DPkg::ConfigurePending "false";
|
||||
DPkg::TriggersPending "false";
|
||||
dpkg::selection::remove::approved "false";
|
||||
DPkg::Inhibit-Shutdown "false";
|
||||
DPkg::Use-Pty "false";
|
||||
DPkg::Pre-Install-Pkgs { "/usr/lib/rmm-apt-transaction/hook"; };
|
||||
@@ -946,7 +950,9 @@ def check_hook_config(config):
|
||||
('dpkg::tools::options::' + HOOK + '::infofd', '0'),
|
||||
('dir::bin::dpkg', '/usr/bin/dpkg'),
|
||||
('dir::state::status', '/var/lib/dpkg/status'),
|
||||
('dpkg::configurepending', 'false')):
|
||||
('dpkg::configurepending', 'false'),
|
||||
('dpkg::triggerspending', 'false'),
|
||||
('dpkg::selection::remove::approved', 'false')):
|
||||
require([value for name, value in config if name.lower() == key] == [expected],
|
||||
'APT_CONFIG_BINDING')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user