aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Process.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-25 23:29:05 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-25 23:29:05 +0000
commitbb2438131ef00a7e255c893794f5073b629ae0ac (patch)
tree40468345625da08568aa9c95bab9bb6131a8d8f8 /lib/Iurt/Process.pm
parentf343488e1fd1560351a02a2f1e5b3acb57e2b04b (diff)
downloadiurt-bb2438131ef00a7e255c893794f5073b629ae0ac.tar
iurt-bb2438131ef00a7e255c893794f5073b629ae0ac.tar.gz
iurt-bb2438131ef00a7e255c893794f5073b629ae0ac.tar.bz2
iurt-bb2438131ef00a7e255c893794f5073b629ae0ac.tar.xz
iurt-bb2438131ef00a7e255c893794f5073b629ae0ac.zip
(perform_command) make a line more readable
Diffstat (limited to 'lib/Iurt/Process.pm')
-rw-r--r--lib/Iurt/Process.pm8
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);
+ }
}
}
}