From bd208da8ea9a386f3f0581332216e867d0bc7a3b Mon Sep 17 00:00:00 2001 From: Conrado Buhrer Date: Tue, 27 Jan 2015 13:28:56 -0200 Subject: [PATCH] fixed: namespace clash #710 --- packaging/os/apt.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packaging/os/apt.py b/packaging/os/apt.py index 90d1716e2ca..06f96f3f1d5 100644 --- a/packaging/os/apt.py +++ b/packaging/os/apt.py @@ -607,17 +607,17 @@ def main(): module.fail_json(msg='version number inconsistent with state=latest: %s' % package) if p['state'] in ('latest', 'present', 'build-dep'): - upgrade = False - build_dep = False + state_upgrade = False + state_builddep = False if p['state'] == 'latest': - upgrade = True + state_upgrade = True if p['state'] == 'build-dep': - build_dep = True - result = install(module, packages, cache, upgrade=upgrade, + state_builddep = True + result = install(module, packages, cache, upgrade=state_upgrade, default_release=p['default_release'], install_recommends=install_recommends, force=force_yes, dpkg_options=dpkg_options, - build_dep=build_dep) + build_dep=state_builddep) (success, retvals) = result if success: module.exit_json(**retvals)