From d1912e0070731c7458df36ec1dc4ccd64f47b42e Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 3 Oct 2017 19:13:31 +0100 Subject: Kill most of $cache --- iurt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'iurt') diff --git a/iurt b/iurt index bdb7f4a..8888c9d 100755 --- a/iurt +++ b/iurt @@ -595,10 +595,7 @@ if (!-d "$local_spool/log") { $run{local_spool} = $local_spool; my $cache = { - rpm_srpm => {}, queue => {}, - warning => {}, - run => 1, }; $run{cache} = $cache; @@ -831,7 +828,7 @@ retry: # system("$sudo chroot $chroot_tmp rpm --rebuilddb &> /dev/null"); perform_command("rpm --root $chroot_tmp -qa | sort", - \%run, $config, $cache, + \%run, $config, logname => "rpm_qa", hash => "rpm_qa_$srpm", timeout => 60, @@ -852,7 +849,7 @@ retry: } if (!perform_command(qq(chroot $chroot_tmp /bin/su - $luser -c "TMP=/home/$luser/tmp/ $icecream $command"), - \%run, $config, $cache, + \%run, $config, use_iurt_root_command => 1, mail => $maintainer, error => "[REBUILD] $srpm from $run{distro_tag} does not build correctly on $run{my_arch}", @@ -1042,7 +1039,7 @@ process_queue($config, \%run, \@wrong_rpm); plog('FAIL', "ERROR: RPM with a wrong SRPM name") if @wrong_rpm; if (@wrong_rpm && open my $file, ">$local_spool/log/wrong_srpm_names.log") { foreach (@wrong_rpm) { - print $file "$_->[1] -> $_->[0] (", $cache->{rpm_srpm}{$_->[1]}, ")\n"; + print $file "$_->[1] -> $_->[0]\n"; } } -- cgit v1.2.1