From bb2438131ef00a7e255c893794f5073b629ae0ac Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 25 Mar 2012 23:29:05 +0000 Subject: (perform_command) make a line more readable --- lib/Iurt/Process.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/Iurt/Process.pm b/lib/Iurt/Process.pm index 917af75..f0a3372 100644 --- a/lib/Iurt/Process.pm +++ b/lib/Iurt/Process.pm @@ -302,7 +302,13 @@ sub perform_command { } plog('ERROR', "ERROR: $wr !"); - sendmail($config->{admin}, '' , "$opt{hash} on $run->{my_arch} for $run->{media}: could not proceed", "$wr\n\n$comment\n$output", "Iurt the rebuild bot <$config->{admin}>", $opt{debug_mail}, $config) if $opt{wait_mail}; + if ($opt{wait_mail}) { + sendmail($config->{admin}, '' , + "$opt{hash} on $run->{my_arch} for $run->{media}: could not proceed", + "$wr\n\n$comment\n$output", + "Iurt the rebuild bot <$config->{admin}>", + $opt{debug_mail}, $config); + } } } } -- cgit v1.2.1