summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael DeHaan <michael@ansible.com>2014-03-11 10:47:53 -0400
committerMichael DeHaan <michael@ansible.com>2014-03-11 10:48:52 -0400
commit8588ac5f60ee52f6488802023d3aef53afe2cd33 (patch)
tree0c38c1d386c2570ecab0d26ed1faf8c3835be3be
parent3bb3ce4467545e2e124c913a8c22bd39b0a7b7d6 (diff)
downloadansible-1.5.2.tar.gz
Fix other reference to APT_ENV_VARS.v1.5.2
-rw-r--r--library/packaging/apt6
1 files changed, 5 insertions, 1 deletions
diff --git a/library/packaging/apt b/library/packaging/apt
index f11ab73de1..311bfa1199 100644
--- a/library/packaging/apt
+++ b/library/packaging/apt
@@ -343,7 +343,11 @@ def upgrade(m, mode="yes", force=False,
force_yes = ''
apt_cmd_path = m.get_bin_path(apt_cmd, required=True)
- cmd = '%s %s -y %s %s %s %s' % (APT_ENVVARS, apt_cmd_path, dpkg_options,
+
+ for (k,v) in APT_ENV_VARS.iteritems():
+ os.environ[k] = v
+
+ cmd = '%s -y %s %s %s %s' % (apt_cmd_path, dpkg_options,
force_yes, check_arg, upgrade_command)
rc, out, err = m.run_command(cmd)
if rc: