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 committed by Matt Clay
parent b5fb47e28e
commit 0c1cf5ee1c

View file

@ -411,7 +411,7 @@ def install(m, pkgspec, cache, upgrade=False, default_release=None,
only_upgrade = ''
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:
cmd = "%s -y %s %s %s %s %s install %s" % (APT_GET_CMD, dpkg_options, only_upgrade, force_yes, autoremove, check_arg, packages)