/[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.5 by slords, Fri May 4 15:05:25 2007 UTC Revision 1.7 by slords, Thu May 10 05:09:54 2007 UTC
# Line 127  foreach my $pkg ( keys %repohash ) { Line 127  foreach my $pkg ( keys %repohash ) {
127                                          @{$repohash{$pkg}{$pos}} = grep { $_ gt $repohash{$pkg}{latest} } @{$repohash{$pkg}{$pos}};                                          @{$repohash{$pkg}{$pos}} = grep { $_ gt $repohash{$pkg}{latest} } @{$repohash{$pkg}{$pos}};
128                                          delete $repohash{$pkg}{$pos};                                          delete $repohash{$pkg}{$pos};
129                                  }                                  }
130                          } else {                          } elsif ( ref($repohash{$pkg}{$pos}) eq 'ARRAY' ) {
131                                  my ($latest, @rest) = sort { $b cmp $a } @{$repohash{$pkg}{$pos}};                                  my ($latest, @rest) = sort { $b cmp $a } @{$repohash{$pkg}{$pos}};
132                                  delete $repohash{$pkg}{$pos};                                  delete $repohash{$pkg}{$pos};
133                                  if ( $repohash{$pkg}{latest} && $repohash{$pkg}{latest} ge $latest ) {                                  if ( $repohash{$pkg}{latest} && $repohash{$pkg}{latest} ge $latest ) {
# Line 240  print "\n"; Line 240  print "\n";
240  foreach my $repo ( sort keys %changed ) {  foreach my $repo ( sort keys %changed ) {
241          next if $repo =~ m{^$stagedir};          next if $repo =~ m{^$stagedir};
242    
243          print "rebuilding $repo/$arch...\n";          my $dir=`readlink -f $repo/$arch`;
244          system(qw(createrepo), "$repo/$arch");          chomp $dir;
245          system(qw(repoview), "$repo/$arch");          print "rebuilding $dir...\n";
246            system(qw(createrepo), "$dir");
247            system(qw(repoview), "$dir");
248  }  }
249    


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