232 |
} |
} |
233 |
$cmp->{oldrepo} = $cmp->{repo} unless $cmp->{oldrepo}; |
$cmp->{oldrepo} = $cmp->{repo} unless $cmp->{oldrepo}; |
234 |
$cmp->{repo} = $dest; |
$cmp->{repo} = $dest; |
235 |
$track{repo} = $dest unless $dest eq $track{repo}; |
if ( ! $cmp->{src} && $repos->{$dest}->{prio} > $repos->{$track{repo}}->{prio} ) { |
236 |
|
$track{repo} = $dest; |
237 |
|
$track{svr} = $cmp->{svr}; |
238 |
|
} |
239 |
} |
} |
240 |
if ( $cmp->{src} && $reposrc{$cmp->{repo}} ) { |
if ( $cmp->{src} && $reposrc{$cmp->{repo}} ) { |
241 |
$reposrc{$cmp->{repo}}->{srpm} = $cmp; |
$reposrc{$cmp->{repo}}->{srpm} = $cmp; |
256 |
my $dest = $repos->{$track{repo}}->{prio} > $repos->{$devel2}->{prio} ? $track{repo} : $devel2; |
my $dest = $repos->{$track{repo}}->{prio} > $repos->{$devel2}->{prio} ? $track{repo} : $devel2; |
257 |
$dest = pkgdest($cmp, $devel1, $dest, $rpms->{$base}->{rpms}); |
$dest = pkgdest($cmp, $devel1, $dest, $rpms->{$base}->{rpms}); |
258 |
$dest = $devel1 if verrel($cmp, $dest, \%counts); |
$dest = $devel1 if verrel($cmp, $dest, \%counts); |
259 |
unless ( verrel($cmp, $dest, \%counts) ) { |
if ( $cmp->{src} && ! $reposrc{$dest} ) { |
260 |
|
$cmp->{delete}++; |
261 |
|
} elsif ( $repos->{$dest}->{prio} >= $repos->{$track{repo}}->{prio} && ! verrel($cmp, $dest, \%counts) ) { |
262 |
push @{$cmp->{repos}}, $dest; |
push @{$cmp->{repos}}, $dest; |
263 |
if ( $repos->{$cmp->{repo}}->{orig} ) { |
$orig{$cmp->{nvra}}++; |
|
$orig{$cmp->{nvra}}++; |
|
|
} elsif ( $cmp->{src} && $reposrc{$cmp->{repo}} ) { |
|
|
$reposrc{$cmp->{repo}}->{srpm} = $cmp; |
|
|
} else { |
|
|
$cmp->{delete}++; |
|
|
} |
|
264 |
$cmp->{oldrepo} = $cmp->{repo} unless $cmp->{oldrepo}; |
$cmp->{oldrepo} = $cmp->{repo} unless $cmp->{oldrepo}; |
265 |
$cmp->{repo} = $dest; |
$cmp->{repo} = $dest; |
266 |
if ( $cmp->{src} && $reposrc{$cmp->{repo}} ) { |
$reposrc{$cmp->{repo}}->{srpm} = $cmp if $cmp->{src}; |
|
$reposrc{$cmp->{repo}}->{srpm} = $cmp; |
|
|
} |
|
267 |
} else { |
} else { |
268 |
$cmp->{delete}++; |
$cmp->{delete}++; |
269 |
} |
} |