honour 'only_upgrade' flag for 'build_dep' case in 'apt' module
This commit is contained in:
parent
b5fb47e28e
commit
0c1cf5ee1c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue