[elbe-devel] [PATCH v2 04/15] Change os.sytem to shellhelper::system for "toolchainextract.py"

dion at linutronix.de dion at linutronix.de
Mon Jun 24 17:39:01 CEST 2019


From: Olivier Dion <dion at linutronix.de>

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

diff --git a/elbepack/commands/toolchainextract.py b/elbepack/commands/toolchainextract.py
index aaf26ac2..566afc8e 100644
--- a/elbepack/commands/toolchainextract.py
+++ b/elbepack/commands/toolchainextract.py
@@ -9,11 +9,13 @@ from tempfile import mkdtemp
 
 import os
 
+
 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.shellhelper import system
 
 
 def run_command(argv):
@@ -78,4 +80,4 @@ def run_command(argv):
         repo.includedeb(os.path.join(tmpdir, p))
 
     repo.finalize()
-    os.system('rm -r "%s"' % tmpdir)
+    system('rm -r "%s"' % tmpdir)
-- 
2.11.0




More information about the elbe-devel mailing list