[elbe-devel] [PATCH 03/20] asciidoclog: add env_add parameter to LogBase.do()
Torben Hohn
torben.hohn at linutronix.de
Fri Oct 12 11:27:49 CEST 2018
prepare to remove usage of os.environ by allowing to pass environment
variables to LogBase.do()
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/asciidoclog.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/elbepack/asciidoclog.py b/elbepack/asciidoclog.py
index 6fbb2d14..ad899feb 100644
--- a/elbepack/asciidoclog.py
+++ b/elbepack/asciidoclog.py
@@ -45,7 +45,7 @@ class LogBase(object):
"---------------------------------------")
self.printo()
- def do(self, cmd, allow_fail=False, stdin=None):
+ def do(self, cmd, allow_fail=False, stdin=None, env_add=None):
if stdin is None:
self.printo("running cmd +%s+" % cmd)
@@ -53,7 +53,7 @@ class LogBase(object):
self.printo("running cmd +%s with STDIN %s+" % (cmd, stdin))
self.verbatim_start()
- ret, _ = command_out(cmd, stdin=stdin, output=self.fp)
+ ret, _ = command_out(cmd, stdin=stdin, output=self.fp, env_add=env_add)
self.verbatim_end()
if ret != 0:
--
2.11.0
More information about the elbe-devel
mailing list