/[smeserver]/builds_bin/update_repos
ViewVC logotype

Diff of /builds_bin/update_repos

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.62 by slords, Mon Nov 22 05:16:02 2010 UTC Revision 1.65 by slords, Tue Nov 30 23:55:48 2010 UTC
# Line 373  foreach my $ver ( sort { $a <=> $b } key Line 373  foreach my $ver ( sort { $a <=> $b } key
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                  $pkg->{oldrepo} = $pkg->{repo} unless $pkg->{oldrepo};                  unless ( grep { $_->{nvra} eq $pkg->{nvra} && $_->{repo} eq $stage } @{$rpms->{$base}->{rpms}} ) {
377                  $pkg->{repo} = $stage;                      $pkg->{oldrepo} = $pkg->{repo} unless $pkg->{oldrepo};
378                  push @{$pkg->{repos}}, $stage;                      $pkg->{repo} = $stage;
379                        push @{$pkg->{repos}}, $stage;
380                    }
381              }              }
382              if ( ! $print && ($pkg->{delete} || $pkg->{repos} || $pkg->{nosig} ) ) {              if ( ! $print && ($pkg->{delete} || $pkg->{repos} || $pkg->{nosig} ) ) {
383                  print "\n$base ($disttag$ver)\n", "=" x length("$base ($disttag$ver)"), "\n";                  print "\n$base ($disttag$ver)\n", "=" x length("$base ($disttag$ver)"), "\n";


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed