From 8c6472680bbc28bd7e64570a70043d7a3d6ea7c3 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 3 Oct 2017 19:13:31 +0100 Subject: kill "needed" and "buildrequires" --- iurt | 3 --- lib/Iurt/Urpmi.pm | 5 ----- 2 files changed, 8 deletions(-) diff --git a/iurt b/iurt index d0ec6bf..bdb7f4a 100755 --- a/iurt +++ b/iurt @@ -599,7 +599,6 @@ my $cache = { queue => {}, warning => {}, run => 1, - needed => {}, }; $run{cache} = $cache; @@ -883,8 +882,6 @@ retry: } # do some cleaning if the compilation is successful - delete $cache->{needed}{$srpm} if defined $cache->{needed}{$srpm}; - delete $cache->{buildrequires}{$srpm} if defined $cache->{buildrequires}{$srpm}; # FIXME It seems the glob is not correctly expanded any more, so listing the directory content to do so opendir my $binfh, "$chroot_tmp/home/$luser/rpmbuild/RPMS/"; my @packages; diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm index a4300ad..a180f73 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -426,15 +426,10 @@ sub _install_callback { my $maintainer = $opt->{maintainer}; $opt->{mail} = $maintainer || $admin; - # remember what is needed, and do not try to - # recompile until it is available - if ($missing_package) { $opt->{error} = "[MISSING] $missing_deps, needed by $missing_package to build $title, is not available on $run->{my_arch} (rebuild $missing_package?)"; - $cache->{needed}{$title}{$missing_deps} = { package => $missing_package , version => $version, maint => $first_maint || $other_maint || $maintainer }; } else { $opt->{error} = "[MISSING] $missing_deps, needed to build $title, is not available on $run->{my_arch}"; - $cache->{needed}{$title}{$missing_deps} = { package => $missing_package , version => $version, maint => $maintainer || $other_maint }; } } 0; -- cgit v1.2.1