[elbe-devel] [PATCH 1/8] elbepack: cdroms.py: adding exception handling

Eduard Krein eduard.krein at linutronix.de
Thu Mar 28 14:41:02 CET 2024


adding exception handling to check if files can be copied
onto build target.

Signed-off-by: Eduard Krein <eduard.krein at linutronix.de>
---
 elbepack/cdroms.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/elbepack/cdroms.py b/elbepack/cdroms.py
index 7e318188..0d8462fc 100644
--- a/elbepack/cdroms.py
+++ b/elbepack/cdroms.py
@@ -139,6 +139,8 @@ def mk_binary_cdrom(rfs, arch, codename, init_codename, xml, target):
                           'The generated CDROM will not contain initvm pkgs\n'
                           'This happened because the initvm was probably\n'
                           'generated with --skip-build-bin')
+    except Exception as e:
+        logging.error('Failure to copy files into target directory: %s', e)
 
         do(f'mkdir -p "{repo_path}"')
 
-- 
2.39.2



More information about the elbe-devel mailing list