From a5b13fe4ce7e3d3846999ae35127fbe4095ee6c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosmin=20Lu=C8=9B=C4=83?= Date: Fri, 11 May 2012 10:54:55 +0300 Subject: [PATCH] Added parameter to the apt-get install command to prevent interactive conflict resolution --- library/apt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/apt b/library/apt index 5cb50cb9d03..d91c8188d3d 100755 --- a/library/apt +++ b/library/apt @@ -82,7 +82,7 @@ def install(pkgspec, cache, upgrade=False, default_release=None): name, version = package_split(pkgspec) installed, upgradable = package_status(name, version, cache) if not installed or (upgrade and upgradable): - cmd = "%s -q -y install '%s'" % (APT, pkgspec) + cmd = "%s --option Dpkg::Options::=--force-confold -q -y install '%s'" % (APT, pkgspec) if default_release: cmd += " -t '%s'" % (default_release,) rc, out, err = run_apt(cmd)