Changeset 372234f in rattail-fabric


Ignore:
Timestamp:
07/03/18 23:15:31 (2 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
b3f4d1e
Parents:
394dd2e
Message:

Add dpkg options to force 'confold' where applicable

i.e. what I tried to do a moment ago, I now have hopefully achieved...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail_fabric/apt.py

    r394dd2e r372234f  
    8383    """
    8484    update()
    85     sudo('DEBIAN_FRONTEND={} apt-get --assume-yes dist-upgrade'.format(frontend))
     85    options = ''
     86    if frontend == 'noninteractive':
     87        options = '--option Dpkg::Options::="--force-confdef" --option Dpkg::Options::="--force-confold"'
     88    sudo('DEBIAN_FRONTEND={} apt-get --assume-yes {} dist-upgrade'.format(frontend, options))
    8689
    8790
Note: See TracChangeset for help on using the changeset viewer.