[elbe-devel] [PATCH 1/7] elbepack: archivedir: check result of call to tar

Thomas Weißschuh thomas.weissschuh at linutronix.de
Wed Jul 24 10:01:29 CEST 2024


If there is an error it should be reported.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/archivedir.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/archivedir.py b/elbepack/archivedir.py
index b04490c050a6..9064804839de 100644
--- a/elbepack/archivedir.py
+++ b/elbepack/archivedir.py
@@ -33,7 +33,7 @@ def collect(tararchive, path, keep):
         'tar', 'rf', tararchive,
         *([] if keep else ['--owner=root',  '--group=root']),
         '-C', path, '.',
-    ])
+    ], check=True)
 
 
 def chg_archive(xml, path, keep):

-- 
2.45.2



More information about the elbe-devel mailing list