From d4a928e3027963c7de3878fc2c905ea345a4bca1 Mon Sep 17 00:00:00 2001 From: Remy Date: Thu, 7 Feb 2013 08:00:02 +0100 Subject: [PATCH] Added DPKG options which lardcanoe suggested --- apt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apt b/apt index 97358615fdb..bf96cc4069a 100644 --- a/apt +++ b/apt @@ -174,9 +174,9 @@ def remove(m, pkgspec, cache, purge=False): m.exit_json(changed=True) def upgrade(m, mode="yes"): - upgrade_command = "upgrade" + upgrade_command = '-o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" upgrade' 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) rc, out, err = m.run_command(cmd) if rc: