Added parameter to the apt-get install command to prevent interactive conflict resolution
This commit is contained in:
parent
6ec0bc8bfd
commit
0f1d98e46b
1 changed files with 1 additions and 1 deletions
2
apt
2
apt
|
@ -82,7 +82,7 @@ def install(pkgspec, cache, upgrade=False, default_release=None):
|
||||||
name, version = package_split(pkgspec)
|
name, version = package_split(pkgspec)
|
||||||
installed, upgradable = package_status(name, version, cache)
|
installed, upgradable = package_status(name, version, cache)
|
||||||
if not installed or (upgrade and upgradable):
|
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:
|
if default_release:
|
||||||
cmd += " -t '%s'" % (default_release,)
|
cmd += " -t '%s'" % (default_release,)
|
||||||
rc, out, err = run_apt(cmd)
|
rc, out, err = run_apt(cmd)
|
||||||
|
|
Loading…
Reference in a new issue