fixed: missing check for upgrade flag

This commit is contained in:
Conrado Buhrer 2015-01-26 17:48:03 -02:00
parent ef3f486f6e
commit 3155656eef

View file

@ -608,7 +608,8 @@ def main():
if p['state'] in ('latest', 'present', 'build-dep'): if p['state'] in ('latest', 'present', 'build-dep'):
build_dep = p.get('build-dep', False) build_dep = p.get('build-dep', False)
result = install(module, packages, cache, upgrade=True, upgrade = p.get('latest', False)
result = install(module, packages, cache, upgrade=upgrade,
default_release=p['default_release'], default_release=p['default_release'],
install_recommends=install_recommends, install_recommends=install_recommends,
force=force_yes, dpkg_options=dpkg_options, force=force_yes, dpkg_options=dpkg_options,