From 88121619bc279095952c82bd490d777d9c12b2aa Mon Sep 17 00:00:00 2001 From: soksanichenko Date: Fri, 18 Mar 2022 22:37:57 +0200 Subject: [PATCH] ALBS-226: Patch pungi/lorax for building AL9 - Defaults modules can be empty, but pungi detects empty folder while copying and raises the exception in this case --- pungi/scripts/gather_modules.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pungi/scripts/gather_modules.py b/pungi/scripts/gather_modules.py index f3928727..8c19e95f 100644 --- a/pungi/scripts/gather_modules.py +++ b/pungi/scripts/gather_modules.py @@ -65,6 +65,9 @@ def collect_modules(modules_paths: List[BinaryIO], target_dir: str): module_defaults_path = os.path.join(target_dir, 'module_defaults') os.makedirs(modules_path, exist_ok=True) os.makedirs(module_defaults_path, exist_ok=True) + # Defaults modules can be empty, but pungi detects + # empty folder while copying and raises the exception in this case + Path(os.path.join(module_defaults_path, '.empty')).touch() for module_file in modules_paths: data = module_file.read()