diff --git a/bauh/gems/arch/worker.py b/bauh/gems/arch/worker.py index c3797947..487545fd 100644 --- a/bauh/gems/arch/worker.py +++ b/bauh/gems/arch/worker.py @@ -245,7 +245,7 @@ class ArchCompilationOptimizer(Thread): self._update_progress(80) - if optimizations: + if custom_makepkg and optimizations: generated_by = '# \n' custom_makepkg = custom_makepkg + '\n' + generated_by + '\n'.join(optimizations) + '\n'