mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
honour 'only_upgrade' flag for 'build_dep' case in 'apt' module
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user