summaryrefslogtreecommitdiff
path: root/ick2/actionenvs.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-04-15 18:40:13 +0300
committerLars Wirzenius <liw@liw.fi>2018-04-15 18:40:13 +0300
commitb7dab0fe68af921e15bc7b5c3a9f44b4ea6a0a1a (patch)
treedde9c7ba0250fd0bb63a0639ee34f9939083ebfc /ick2/actionenvs.py
parentcdfad21af8cc012aa561eb7e2681dd362e017d98 (diff)
downloadick2-b7dab0fe68af921e15bc7b5c3a9f44b4ea6a0a1a.tar.gz
Add: pass in build number via environment to child processes
Diffstat (limited to 'ick2/actionenvs.py')
-rw-r--r--ick2/actionenvs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ick2/actionenvs.py b/ick2/actionenvs.py
index 099b13f..e09366b 100644
--- a/ick2/actionenvs.py
+++ b/ick2/actionenvs.py
@@ -103,6 +103,10 @@ class ActionEnvironment: # pragma: no cover
self._systree = systree
self._workspace = workspace
self._reporter = reporter
+ self._extra_env = {}
+
+ def set_extra_env(self, extra_env):
+ self._extra_env = dict(extra_env)
def get_systree_directory(self):
return self._systree
@@ -132,6 +136,7 @@ class ActionEnvironment: # pragma: no cover
'LC_ALL': 'C',
'DEBIAN_FRONTEND': 'noninteractive',
})
+ env.update(self._extra_env)
return env