some more apt configs, which used to be used on the fly

This commit is contained in:
cronekorkn 2023-08-09 19:20:55 +02:00
parent 14715fdab7
commit 33a6e2a979
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
2 changed files with 10 additions and 1 deletions

View file

@ -66,7 +66,7 @@ files = {
actions = { actions = {
'apt_update': { 'apt_update': {
'command': 'apt-get update -o APT::Update::Error-Mode=any', 'command': 'apt-get update',
'needed_by': { 'needed_by': {
'pkg_apt:', 'pkg_apt:',
}, },

View file

@ -8,6 +8,11 @@ defaults = {
'Post-Invoke': { 'Post-Invoke': {
'/bin/rm -f /var/cache/apt/archives/*.deb || true', '/bin/rm -f /var/cache/apt/archives/*.deb || true',
}, },
'Options': {
# https://unix.stackexchange.com/a/642541/357916
'--force-confold',
'--force-confdef',
},
}, },
'APT': { 'APT': {
'NeverAutoRemove': { 'NeverAutoRemove': {
@ -30,6 +35,10 @@ defaults = {
'tasks', 'tasks',
}, },
'Move-Autobit-Sections': 'oldlibs', 'Move-Autobit-Sections': 'oldlibs',
'Update': {
# https://unix.stackexchange.com/a/653377/357916
'Error-Mode': 'any',
},
}, },
}, },
'sources': {}, 'sources': {},