[elbe-devel] [PATCH v2 15/15] Change check_call to shellhelper::system for "archivedir.py"

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


From: Olivier Dion <dion at linutronix.de>

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/archivedir.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/elbepack/archivedir.py b/elbepack/archivedir.py
index e4666e3e..10155228 100644
--- a/elbepack/archivedir.py
+++ b/elbepack/archivedir.py
@@ -15,9 +15,10 @@ except ImportError:
 
 from base64 import standard_b64encode
 from bz2 import compress as bz2compress
-from subprocess import CalledProcessError, check_call
+from subprocess import CalledProcessError
 
 from elbepack.treeutils import etree
+from elbepack.shellhelper import system
 
 class ArchivedirError(Exception):
     pass
@@ -44,7 +45,7 @@ def collect(tararchive, path, keep):
     else:
         cmd = 'tar rf ' + tararchive + ' --owner=root --group=root -C '
     cmd += path + ' .'
-    check_call(cmd, shell=True)
+    system(cmd)
 
 def chg_archive(xml, path, keep):
     if os.path.isdir(path):
-- 
2.11.0




More information about the elbe-devel mailing list