373 |
|
|
374 |
foreach my $pkg ( sort { $a->{nvra} cmp $b->{nvra} } @{$rpms->{$base}->{rpms}} ) { |
foreach my $pkg ( sort { $a->{nvra} cmp $b->{nvra} } @{$rpms->{$base}->{rpms}} ) { |
375 |
if ( $pkg->{latest} && $pkg->{latest} == 1 ) { |
if ( $pkg->{latest} && $pkg->{latest} == 1 ) { |
376 |
unless ( grep { $_->{nvra} eq $pkg->{nvra} && $_->{repo} eq $stage } @{$rpms->{$base}->{rpms}} ) { |
unless ( grep { $_->{rpm} eq $pkg->{rpm} && $_->{repo} eq $stage } @{$rpms->{$base}->{rpms}} ) { |
377 |
$pkg->{oldrepo} = $pkg->{repo} unless $pkg->{oldrepo}; |
$pkg->{oldrepo} = $pkg->{repo} unless $pkg->{oldrepo}; |
378 |
$pkg->{repo} = $stage; |
$pkg->{repo} = $stage; |
379 |
push @{$pkg->{repos}}, $stage; |
push @{$pkg->{repos}}, $stage; |