[elbe-devel] [PATCH v2 02/15] Change os.sytem to shellhelper::system for "chroot.py"
dion at linutronix.de
dion at linutronix.de
Mon Jun 24 17:38:59 CEST 2019
From: Olivier Dion <dion at linutronix.de>
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/commands/chroot.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/elbepack/commands/chroot.py b/elbepack/commands/chroot.py
index 7529fcf7..32d13f70 100644
--- a/elbepack/commands/chroot.py
+++ b/elbepack/commands/chroot.py
@@ -14,6 +14,7 @@ import os
from elbepack.elbeproject import ElbeProject
from elbepack.elbexml import ValidationError, ValidationMode
+from elbepack.shellhelper import system
def run_command(argv):
@@ -62,7 +63,7 @@ def run_command(argv):
if opt.target:
with project.targetfs:
- os.system("/usr/sbin/chroot %s %s" % (project.targetpath, cmd))
+ system("/usr/sbin/chroot %s %s" % (project.targetpath, cmd))
else:
with project.buildenv:
- os.system("/usr/sbin/chroot %s %s" % (project.chrootpath, cmd))
+ system("/usr/sbin/chroot %s %s" % (project.chrootpath, cmd))
--
2.11.0
More information about the elbe-devel
mailing list