From b7dab0fe68af921e15bc7b5c3a9f44b4ea6a0a1a Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 15 Apr 2018 18:40:13 +0300 Subject: Add: pass in build number via environment to child processes --- ick2/actionenvs.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ick2/actionenvs.py') 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 -- cgit v1.2.1