Skip to content

Commit

Permalink
Fix other reference to APT_ENV_VARS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael DeHaan committed Mar 11, 2014
1 parent 3bb3ce4 commit 8588ac5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion library/packaging/apt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8588ac5

Please sign in to comment.