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:
parent
394dd2e38e
commit
372234f583
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue