From 0c1cf5ee1c5312ddc7907637050dc41f6be59b3e Mon Sep 17 00:00:00 2001 From: Roland Sommer Date: Thu, 17 Mar 2016 11:22:07 +0100 Subject: [PATCH] honour 'only_upgrade' flag for 'build_dep' case in 'apt' module --- lib/ansible/modules/packaging/os/apt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/apt.py b/lib/ansible/modules/packaging/os/apt.py index 0dd2b725a40..0c5f7db5b1c 100644 --- a/lib/ansible/modules/packaging/os/apt.py +++ b/lib/ansible/modules/packaging/os/apt.py @@ -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)