29 |
os => 'RPMS/', |
os => 'RPMS/', |
30 |
builds => '/builds/smeserver-7-core/', |
builds => '/builds/smeserver-7-core/', |
31 |
contribs => '/builds/smeserver-7-contribs/', |
contribs => '/builds/smeserver-7-contribs/', |
|
qa => '/builds/smeserver-7-qa/', |
|
32 |
stage => '/stage/7/', |
stage => '/stage/7/', |
33 |
}, |
}, |
34 |
'8' => { active => 1, |
'8' => { active => 1, |
38 |
os => '', |
os => '', |
39 |
builds => '/builds/smeserver-8-core/', |
builds => '/builds/smeserver-8-core/', |
40 |
contribs => '/builds/smeserver-8-contribs/', |
contribs => '/builds/smeserver-8-contribs/', |
|
qa => '/builds/smeserver-8-qa/', |
|
41 |
stage => '/stage/8/', |
stage => '/stage/8/', |
42 |
}, |
}, |
43 |
}; |
}; |
141 |
last unless $dir =~ m{~A}; |
last unless $dir =~ m{~A}; |
142 |
} |
} |
143 |
} |
} |
144 |
find( { wanted => sub { process_rpm($_, $smever, 'builds'); }, no_chdir => 1, follow_fast => 1 }, ( $distrepo->{$smever}->{'builds'}, $distrepo->{$smever}->{'qa'} ) ); |
find( { wanted => sub { process_rpm($_, $smever, 'builds'); }, no_chdir => 1, follow_fast => 1 }, $distrepo->{$smever}->{'builds'} ); |
145 |
find( { wanted => sub { process_rpm($_, $smever, 'contribs'); }, no_chdir => 1, follow_fast => 1 }, $distrepo->{$smever}->{'contribs'} ); |
find( { wanted => sub { process_rpm($_, $smever, 'contribs'); }, no_chdir => 1, follow_fast => 1 }, $distrepo->{$smever}->{'contribs'} ); |
146 |
|
|
147 |
foreach my $base ( sort keys %$rpms ) { |
foreach my $base ( sort keys %$rpms ) { |
232 |
} |
} |
233 |
$cmp->{oldrepo} = $cmp->{repo} unless $cmp->{oldrepo}; |
$cmp->{oldrepo} = $cmp->{repo} unless $cmp->{oldrepo}; |
234 |
$cmp->{repo} = $dest; |
$cmp->{repo} = $dest; |
235 |
|
if ( ! $cmp->{src} || $repos->{$dest}->{prio} > $repos->{$track{repo}}->{prio} ) { |
236 |
|
$track{repo} = $dest; |
237 |
|
} |
238 |
} |
} |
239 |
if ( $cmp->{src} && $reposrc{$cmp->{repo}} ) { |
if ( $cmp->{src} && $reposrc{$cmp->{repo}} ) { |
240 |
$reposrc{$cmp->{repo}}->{srpm} = $cmp; |
$reposrc{$cmp->{repo}}->{srpm} = $cmp; |
250 |
$track{svr} = $cmp->{svr}; |
$track{svr} = $cmp->{svr}; |
251 |
} |
} |
252 |
} elsif ( ! $repos->{$cmp->{repo}}->{base} ) { |
} elsif ( ! $repos->{$cmp->{repo}}->{base} ) { |
253 |
$cmp->{delete}++; |
if ( $repos->{$cmp->{repo}}->{orig} ) { |
254 |
|
$srpm = $cmp if ! $srpm && $cmp->{src}; |
255 |
|
my $dest = $repos->{$track{repo}}->{prio} > $repos->{$devel2}->{prio} ? $track{repo} : $devel2; |
256 |
|
$dest = pkgdest($cmp, $devel1, $dest, $rpms->{$base}->{rpms}); |
257 |
|
$dest = $devel1 if verrel($cmp, $dest, \%counts); |
258 |
|
if ( $cmp->{src} && ! $reposrc{$dest} ) { |
259 |
|
$cmp->{delete}++; |
260 |
|
} elsif ( $repos->{$dest}->{prio} >= $repos->{$track{repo}}->{prio} && ! verrel($cmp, $dest, \%counts) ) { |
261 |
|
push @{$cmp->{repos}}, $dest; |
262 |
|
$orig{$cmp->{nvra}}++; |
263 |
|
$cmp->{oldrepo} = $cmp->{repo} unless $cmp->{oldrepo}; |
264 |
|
$cmp->{repo} = $dest; |
265 |
|
$reposrc{$cmp->{repo}}->{srpm} = $cmp if $cmp->{src}; |
266 |
|
} else { |
267 |
|
$cmp->{delete}++; |
268 |
|
} |
269 |
|
} else { |
270 |
|
$cmp->{delete}++; |
271 |
|
} |
272 |
} |
} |
273 |
} |
} |
274 |
unless ( $repos->{$cmp->{repo}}->{orig} || ( $cmp->{delete} && ! $cmp->{repos} ) ) { |
unless ( $repos->{$cmp->{repo}}->{orig} || ( $cmp->{delete} && ! $cmp->{repos} ) ) { |
401 |
} |
} |
402 |
} |
} |
403 |
unless ( $opts{t} ) { |
unless ( $opts{t} ) { |
404 |
finddepth(sub{rmdir}, $distrepo->{$smever}->{$_}) foreach ('builds','contribs','qa'); |
finddepth(sub{rmdir}, $distrepo->{$smever}->{$_}) foreach ('builds','contribs'); |
405 |
} |
} |
406 |
} |
} |
407 |
|
|