[elbe-devel] [PATCH 14/32] Add logging to opt.output for command toolchainextract

dion at linutronix.de dion at linutronix.de
Fri Jun 14 22:13:28 CEST 2019


From: Olivier Dion <dion at linutronix.de>

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/commands/toolchainextract.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/elbepack/commands/toolchainextract.py b/elbepack/commands/toolchainextract.py
index aaf26ac2..6565e9b1 100644
--- a/elbepack/commands/toolchainextract.py
+++ b/elbepack/commands/toolchainextract.py
@@ -13,7 +13,7 @@ from elbepack.xmldefaults import ElbeDefaults
 from elbepack.repomanager import ToolchainRepo
 from elbepack.debpkg import build_binary_deb
 from elbepack.toolchain import get_toolchain
-from elbepack.asciidoclog import StdoutLog
+from elbepack.log import log
 
 
 def run_command(argv):
@@ -68,6 +68,11 @@ def run_command(argv):
 
     pkgs = os.listdir(tmpdir)
 
+    if opt.output:
+        log.new(opt.output)
+    else:
+        log.stdout()
+
     repo = ToolchainRepo(
         defaults["arch"],
         opt.codename,
-- 
2.11.0




More information about the elbe-devel mailing list