Merge pull request #2765 from no2a/apt
apt: export env vars before run dpkg
This commit is contained in:
commit
0930a44816
1 changed files with 3 additions and 0 deletions
|
@ -443,6 +443,9 @@ def install_deb(m, debs, cache, force, install_recommends, dpkg_options):
|
|||
if force:
|
||||
options += " --force-all"
|
||||
|
||||
for (k,v) in APT_ENV_VARS.iteritems():
|
||||
os.environ[k] = v
|
||||
|
||||
cmd = "dpkg %s -i %s" % (options, " ".join(pkgs_to_install))
|
||||
rc, out, err = m.run_command(cmd)
|
||||
if "stdout" in retvals:
|
||||
|
|
Loading…
Add table
Reference in a new issue