honour 'only_upgrade' flag for 'build_dep' case in 'apt' module

This commit is contained in:
Roland Sommer 2016-03-17 11:22:07 +01:00
parent bc9fb43ac0
commit b118c5ef11

View file

@ -407,7 +407,7 @@ def install(m, pkgspec, cache, upgrade=False, default_release=None,
only_upgrade = '' only_upgrade = ''
if build_dep: if build_dep:
cmd = "%s -y %s %s %s build-dep %s" % (APT_GET_CMD, dpkg_options, force_yes, check_arg, packages) cmd = "%s -y %s %s %s %s build-dep %s" % (APT_GET_CMD, dpkg_options, only_upgrade, force_yes, check_arg, packages)
else: else:
cmd = "%s -y %s %s %s %s %s install %s" % (APT_GET_CMD, dpkg_options, only_upgrade, force_yes, autoremove, check_arg, packages) cmd = "%s -y %s %s %s %s %s install %s" % (APT_GET_CMD, dpkg_options, only_upgrade, force_yes, autoremove, check_arg, packages)