[elbe-devel] [PATCH 2/7] finetuning: convert <file> to new logging implementation
Torben Hohn
torben.hohn at linutronix.de
Mon Sep 2 10:47:34 CEST 2019
<file> was added after better log had been branched off.
convert it to the new logging.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/finetuning.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/elbepack/finetuning.py b/elbepack/finetuning.py
index 852d39668..18532dda3 100644
--- a/elbepack/finetuning.py
+++ b/elbepack/finetuning.py
@@ -321,7 +321,7 @@ class AddFileAction(FinetuningAction):
raise FinetuningException("Invalid encoding %s" % encoding)
return msg
- def execute(self, log, _buildenv, target):
+ def execute(self, _buildenv, target):
att = self.node.et.attrib
dst = att["dst"]
@@ -354,13 +354,13 @@ class AddFileAction(FinetuningAction):
target.write_file(dst, None, content)
if owner is not None:
- log.chroot(target.path, 'chown "%s" "%s"' % (owner, dst))
+ chroot(target.path, 'chown "%s" "%s"' % (owner, dst))
if group is not None:
- log.chroot(target.path, 'chgrp "%s" "%s"' % (group, dst))
+ chroot(target.path, 'chgrp "%s" "%s"' % (group, dst))
if mode is not None:
- log.chroot(target.path, 'chmod "%s" "%s"' % (mode, dst))
+ chroot(target.path, 'chmod "%s" "%s"' % (mode, dst))
@FinetuningAction.register('raw_cmd')
--
2.11.0
More information about the elbe-devel
mailing list