[elbe-devel] [PATCH 04/20] asciidoclog: remove **args from LogBase.chroot()
Torben Hohn
torben.hohn at linutronix.de
Fri Oct 12 11:27:50 CEST 2018
LogBase.chroot() passes all keyword args to LogBase.do().
Only allow_fail is currently used.
refrain from using **kwargs, because this complicates messing
with the env_add parameter later. Support only allow_fail.
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 ad899feb..f49f9888 100644
--- a/elbepack/asciidoclog.py
+++ b/elbepack/asciidoclog.py
@@ -61,13 +61,13 @@ class LogBase(object):
if not allow_fail:
raise CommandError(cmd, ret)
- def chroot(self, directory, cmd, **args):
+ def chroot(self, directory, cmd, allow_fail=False):
os.environ["LANG"] = "C"
os.environ["LANGUAGE"] = "C"
os.environ["LC_ALL"] = "C"
chcmd = "chroot %s %s" % (directory, cmd)
- self.do(chcmd, **args)
+ self.do(chcmd, allow_fail=allow_fail)
def get_command_out(self, cmd, allow_fail=False):
--
2.11.0
More information about the elbe-devel
mailing list