From 297b048d0ede80b2119ef5d174c98e6531b53b50 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 11 Mar 2014 10:47:53 -0400 Subject: [PATCH] Fix other reference to APT_ENV_VARS. --- library/packaging/apt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: