Add dpkg options to force 'confold' where applicable

i.e. what I tried to do a moment ago, I now have hopefully achieved...
This commit is contained in:
Lance Edgar 2018-07-03 23:15:31 -05:00
parent 394dd2e38e
commit 372234f583

View file

@ -82,7 +82,10 @@ def dist_upgrade(frontend='noninteractive'):
Perform a full ``apt-get dist-upgrade`` operation.
"""
update()
sudo('DEBIAN_FRONTEND={} apt-get --assume-yes dist-upgrade'.format(frontend))
options = ''
if frontend == 'noninteractive':
options = '--option Dpkg::Options::="--force-confdef" --option Dpkg::Options::="--force-confold"'
sudo('DEBIAN_FRONTEND={} apt-get --assume-yes {} dist-upgrade'.format(frontend, options))
def configure_listchanges():