aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-25 23:29:19 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-25 23:29:19 +0000
commit69f4b018c65f8297e7e740f34788008d18e5e233 (patch)
treed2e6c93a629222b88e1855f263663fe0ff57814f
parent34eb26654758083243b236448de28cd6a4368044 (diff)
downloadiurt-69f4b018c65f8297e7e740f34788008d18e5e233.tar
iurt-69f4b018c65f8297e7e740f34788008d18e5e233.tar.gz
iurt-69f4b018c65f8297e7e740f34788008d18e5e233.tar.bz2
iurt-69f4b018c65f8297e7e740f34788008d18e5e233.tar.xz
iurt-69f4b018c65f8297e7e740f34788008d18e5e233.zip
(perform_command) simplify
-rw-r--r--lib/Iurt/Process.pm8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Iurt/Process.pm b/lib/Iurt/Process.pm
index 29c8d4f..2a8e90e 100644
--- a/lib/Iurt/Process.pm
+++ b/lib/Iurt/Process.pm
@@ -255,12 +255,8 @@ sub perform_command {
while ($retry) {
$try++;
- if ($opt{retry} > 1) {
- $logfile = "$opt{log}/$opt{logname}-$try.$run->{run}.log";
- }
- if ($opt{log}) {
- $pid = fork_to_monitor($run, $config, $logfile, %opt);
- }
+ $logfile = "$opt{log}/$opt{logname}-$try.$run->{run}.log" if $opt{retry} > 1;
+ $pid = fork_to_monitor($run, $config, $logfile, %opt) if $opt{log};
eval {
# handle timeout: