[elbe-devel] [PATCH 04/13] Change os.sytem to call_check for "toolchainextract.py"
dion at linutronix.de
dion at linutronix.de
Mon Jun 24 12:48:44 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..b6e3f2f0 100644
--- a/elbepack/commands/toolchainextract.py
+++ b/elbepack/commands/toolchainextract.py
@@ -9,6 +9,8 @@ from tempfile import mkdtemp
import os
+from subprocess import check_call
+
from elbepack.xmldefaults import ElbeDefaults
from elbepack.repomanager import ToolchainRepo
from elbepack.debpkg import build_binary_deb
@@ -78,4 +80,4 @@ def run_command(argv):
repo.includedeb(os.path.join(tmpdir, p))
repo.finalize()
- os.system('rm -r "%s"' % tmpdir)
+ check_call('rm -r "%s"' % tmpdir, shell=True)
--
2.11.0
More information about the elbe-devel
mailing list