diff options
author | Pascal Terjan <pterjan@mageia.org> | 2020-12-13 16:50:58 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2020-12-13 16:51:24 +0000 |
commit | 84d5e1bedf1c3a3a55f98e9a6ac78328994ae765 (patch) | |
tree | ee64f51eb29449cad74a897e0f79022842fe7839 | |
parent | 21a68c741c69970c8c613e941823c6480e689754 (diff) | |
download | iurt-84d5e1bedf1c3a3a55f98e9a6ac78328994ae765.tar iurt-84d5e1bedf1c3a3a55f98e9a6ac78328994ae765.tar.gz iurt-84d5e1bedf1c3a3a55f98e9a6ac78328994ae765.tar.bz2 iurt-84d5e1bedf1c3a3a55f98e9a6ac78328994ae765.tar.xz iurt-84d5e1bedf1c3a3a55f98e9a6ac78328994ae765.zip |
Add arch to all log files
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | lib/Iurt/Process.pm | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -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 { |