From 84d5e1bedf1c3a3a55f98e9a6ac78328994ae765 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sun, 13 Dec 2020 16:50:58 +0000 Subject: Add arch to all log files --- NEWS | 1 + lib/Iurt/Process.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index e42261c..5f23684 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ - iurt: always use urpmi --urpmi-root +- iurt: add arch to all log files 0.7.14 - ulri: add architecture in botcmd filename diff --git a/lib/Iurt/Process.pm b/lib/Iurt/Process.pm index 2d1c060..ea90a62 100644 --- a/lib/Iurt/Process.pm +++ b/lib/Iurt/Process.pm @@ -243,12 +243,12 @@ sub perform_command { my $retry = $opt{retry} || 1; my $call_ret = 1; my ($err, $try); - my $logfile = "$opt{log}/$opt{logname}.$run->{run}.log"; + my $logfile = "$opt{log}/$opt{logname}.$run->{my_arch}.$run->{run}.log"; my $max_retry = max($config->{max_command_retry}, $retry); while ($retry) { $try++; - $logfile = "$opt{log}/$opt{logname}-$try.$run->{run}.log" if $opt{retry} > 1; + $logfile = "$opt{log}/$opt{logname}-$try.$run->{my_arch}.$run->{run}.log" if $opt{retry} > 1; my $pid = $opt{log} ? fork_to_monitor($run, $config, $logfile, %opt) : 0; eval { -- cgit v1.2.1