Added DPKG options which lardcanoe suggested
This commit is contained in:
parent
26310f411c
commit
ad7807fce4
1 changed files with 2 additions and 2 deletions
|
@ -174,9 +174,9 @@ def remove(m, pkgspec, cache, purge=False):
|
||||||
m.exit_json(changed=True)
|
m.exit_json(changed=True)
|
||||||
|
|
||||||
def upgrade(m, mode="yes"):
|
def upgrade(m, mode="yes"):
|
||||||
upgrade_command = "upgrade"
|
upgrade_command = '-o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" upgrade'
|
||||||
if mode == "dist":
|
if mode == "dist":
|
||||||
upgrade_command = "dist-upgrade"
|
upgrade_command = '-o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" dist-upgrade'
|
||||||
cmd = "%s -q -y %s" % (APT, upgrade_command)
|
cmd = "%s -q -y %s" % (APT, upgrade_command)
|
||||||
rc, out, err = m.run_command(cmd)
|
rc, out, err = m.run_command(cmd)
|
||||||
if rc:
|
if rc:
|
||||||
|
|
Loading…
Reference in a new issue