Fix other reference to APT_ENV_VARS.
This commit is contained in:
parent
c09d4b1c7a
commit
297b048d0e
1 changed files with 5 additions and 1 deletions
|
@ -343,7 +343,11 @@ def upgrade(m, mode="yes", force=False,
|
||||||
force_yes = ''
|
force_yes = ''
|
||||||
|
|
||||||
apt_cmd_path = m.get_bin_path(apt_cmd, required=True)
|
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)
|
force_yes, check_arg, upgrade_command)
|
||||||
rc, out, err = m.run_command(cmd)
|
rc, out, err = m.run_command(cmd)
|
||||||
if rc:
|
if rc:
|
||||||
|
|
Loading…
Reference in a new issue