diff options
-rwxr-xr-x | iurt | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -766,12 +766,6 @@ sub rebuild_one { # understand in process list $0 = "Iurt: $run{distro_tag} $run{my_arch} $run{media} $srpm"; - $status or return; - $done{$srpm} and return; - $done{$srpm} = 1; - check_version(\%run, $srpm, \%srpm_version) or return; - if ($run{debug}) { $run{debug}++ == 2 and exit() } - $done++; plog('NOTIFY', "Build package $srpm [$done/$to_compile]"); # When rebuilding all the media, src.rpm can be removed from mirror before we work on them unless (-f "$dir/$srpm") { @@ -999,6 +993,11 @@ do { my %children; for ($i; $i < @{$run{todo}}; $i++) { my ($dir, $srpm, $status) = @{$run{todo}[$i]}; + $done{$srpm} and next; + $done{$srpm} = 1; + check_version(\%run, $srpm, \%srpm_version) or next; + if ($run{debug}) { $run{debug}++ == 2 and exit() } + $done++; if ($run{parallel}) { my $pid; # First cleanup all the finished ones |