diff options
Diffstat (limited to 'lib/Iurt/Process.pm')
-rw-r--r-- | lib/Iurt/Process.pm | 8 |
1 files changed, 7 insertions, 1 deletions
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); + } } } } |