137 |
|
|
138 |
# Stage packages should never be most current |
# Stage packages should never be most current |
139 |
if ( rprop($pkg, 'stage') ) { |
if ( rprop($pkg, 'stage') ) { |
140 |
|
printline('dark blue', 1, ' - checking stage') if $opts{d}; |
141 |
tagpkg($pkg, 'obsolete'); |
tagpkg($pkg, 'obsolete'); |
142 |
next; |
next; |
143 |
} |
} |
255 |
} |
} |
256 |
} |
} |
257 |
} |
} |
|
printline('bold black', 1, ' - missing stage packages') if $opts{d}; |
|
|
movepkg($_, $stage, 0) foreach grep { $_->{latest} && $_->{latest} == 1 } @pkgs; |
|
|
|
|
|
printline('bold black', 1, ' - obsolete packages') if $opts{d}; |
|
|
movepkg($_, 'delete') foreach grep { ! rprop($_, 'base') && ! $_->{done} && ( $_->{obsolete} || ( $_->{rpm}->is_source_package && ! $_->{inuse} ) ) } @pkgs; |
|
|
|
|
258 |
printline('bold black', 1, ' - arch count check') if $opts{d}; |
printline('bold black', 1, ' - arch count check') if $opts{d}; |
259 |
foreach my $r ( keys %$archs ) { |
foreach my $r ( keys %$archs ) { |
260 |
foreach my $p ( keys %{$archs->{$r}} ) { |
foreach my $p ( keys %{$archs->{$r}} ) { |
268 |
} |
} |
269 |
} |
} |
270 |
} |
} |
271 |
|
|
272 |
|
printline('bold black', 1, ' - missing stage packages') if $opts{d}; |
273 |
|
movepkg($_, $stage, 0) foreach grep { $_->{latest} && $_->{latest} == 1 } @pkgs; |
274 |
|
|
275 |
|
printline('bold black', 1, ' - obsolete packages') if $opts{d}; |
276 |
|
movepkg($_, 'delete') foreach grep { ! rprop($_, 'base') && ! $_->{done} && ( $_->{obsolete} || ( $_->{rpm}->is_source_package && ! $_->{inuse} ) ) } @pkgs; |
277 |
} |
} |
278 |
printline('white', 0, "Finished processing.\n"); |
printline('white', 0, "Finished processing.\n"); |
279 |
|
|
490 |
nosig => $nosig, |
nosig => $nosig, |
491 |
}; |
}; |
492 |
$sources{$srcname}++; |
$sources{$srcname}++; |
493 |
$latest{$pkg->name} = $rpms[$#rpms] if ! $pkg->is_source_package && ( ! $latest{$pkg->name} || $pkg gt $latest{$pkg->name}->{rpm} ); |
if ( ! $pkg->is_source_package && ! $repos->{$reponame}->{stage} ) { |
494 |
|
$latest{$pkg->name} = $rpms[$#rpms] if ! $latest{$pkg->name} || $pkg gt $latest{$pkg->name}->{rpm}; |
495 |
|
} |
496 |
} |
} |
497 |
|
|
498 |
sub loadbase { |
sub loadbase { |
513 |
return if grep { $_ eq $srcname } @{$skippkg->{$rel}->{$repo}}; |
return if grep { $_ eq $srcname } @{$skippkg->{$rel}->{$repo}}; |
514 |
$pkgrepo = $repo; |
$pkgrepo = $repo; |
515 |
return unless $pkg->is_source_package || $cmp; |
return unless $pkg->is_source_package || $cmp; |
516 |
return if ! $pkg->is_source_package && $pkg gt $cmp->{rpm} && rprop($cmp, 'base') && rprop($cmp, 'prio') > $repos->{$pkgrepo}->{prio}; |
return if ! $pkg->is_source_package && $pkg ge $cmp->{rpm} && rprop($cmp, 'base') && rprop($cmp, 'prio') > $repos->{$pkgrepo}->{prio}; |
517 |
last; |
last; |
518 |
} |
} |
519 |
} |
} |