ALBS-226: Patch pungi/lorax for building AL9 #3

Merged
soksanichenko merged 3 commits from ALBS-226 into aln9 2022-03-21 15:52:51 +00:00
Showing only changes of commit 700ae3cbac - Show all commits

View File

@ -65,6 +65,9 @@ def collect_modules(modules_paths: List[BinaryIO], target_dir: str):
module_defaults_path = os.path.join(target_dir, 'module_defaults') module_defaults_path = os.path.join(target_dir, 'module_defaults')
os.makedirs(modules_path, exist_ok=True) os.makedirs(modules_path, exist_ok=True)
os.makedirs(module_defaults_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: for module_file in modules_paths:
data = module_file.read() data = module_file.read()
Review

Why do you use here pathlib Path and os.path together? Maybe it's better to use just pathlib?

Why do you use here pathlib Path and os.path together? Maybe it's better to use just pathlib?