diff options
author | Pascal Terjan <pterjan@mageia.org> | 2012-12-10 20:50:45 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2012-12-10 20:50:45 +0000 |
commit | 33cf01394dbfd8fdd8e7a84b2dd708f0747567a8 (patch) | |
tree | dcdd6c5806413b0a87a5e486fff8283277c01431 | |
parent | d623f774c90d2cb60ed6eb2a5bb5163d42d2f475 (diff) | |
download | iurt-33cf01394dbfd8fdd8e7a84b2dd708f0747567a8.tar iurt-33cf01394dbfd8fdd8e7a84b2dd708f0747567a8.tar.gz iurt-33cf01394dbfd8fdd8e7a84b2dd708f0747567a8.tar.bz2 iurt-33cf01394dbfd8fdd8e7a84b2dd708f0747567a8.tar.xz iurt-33cf01394dbfd8fdd8e7a84b2dd708f0747567a8.zip |
Get shared code out of rebuild_one
-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 |