From e9b26ffc088b4d3bd9ef376232bb481c229a349f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Moreira?= Date: Tue, 14 Apr 2020 10:01:39 -0300 Subject: [PATCH] [fix][arch] error when no custom makepkg.conf is created --- bauh/gems/arch/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'