[elbe-devel] [PATCH 06/13] Change os.sytem to call_check for "kernel.py"
dion at linutronix.de
dion at linutronix.de
Mon Jun 24 12:48:46 CEST 2019
From: Olivier Dion <dion at linutronix.de>
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/debianize/kernel.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/elbepack/debianize/kernel.py b/elbepack/debianize/kernel.py
index 7f09a6e5..50fa17ba 100644
--- a/elbepack/debianize/kernel.py
+++ b/elbepack/debianize/kernel.py
@@ -8,6 +8,7 @@
import os
from shutil import copyfile
+from subprocess import check_call
from npyscreen import TitleText, TitleSelectOne
@@ -83,7 +84,7 @@ class Kernel (DebianizeBase):
' -v ' + self.deb['p_version'] + \
' --create -M -D ' + self.deb['release'] + \
' "generated by elbe debianize"'
- os.system(cmd)
+ check_call(cmd, shell=True)
copyfile(os.path.join(self.tmpl_dir, 'linux-image.install'),
'debian/linux-image-' + pkg_name + '.install')
--
2.11.0
More information about the elbe-devel
mailing list