/[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.11 by slords, Sun Jun 3 04:13:57 2007 UTC Revision 1.12 by slords, Sun Jun 3 16:00:54 2007 UTC
# Line 200  foreach my $repo ( keys %srpms ) { Line 200  foreach my $repo ( keys %srpms ) {
200    
201  print "\n";  print "\n";
202  foreach my $repo ( sort keys %copy ) {  foreach my $repo ( sort keys %copy ) {
203          foreach my $rpm ( @{$copy{$repo}} ) {          foreach my $rpm ( keys %{{ map { $_ => 1 } @{$copy{$repo}} }} ) {
204                  print "copying $rpm to $repo/\n";                  print "copying $rpm to $repo/\n";
205                  system(qw(cp --preserve=timestamps), $rpm, "$repo/");                  system(qw(cp --preserve=timestamps), $rpm, "$repo/");
206          }          }
207  }  }
208    
209  print "\n";  print "\n";
210  foreach my $rpm ( @remove, map { $_->{rpm}->filename } grep { $_->{repo} eq 'deleted' } @rpms ) {  foreach my $rpm ( keys %{{ map { $_ => 1 } (@remove, map { $_->{rpm}->filename } grep { $_->{repo} eq 'deleted' } @rpms) }} ) {
211          print "removing $rpm\n";          print "removing $rpm\n";
212          unlink $rpm;          unlink $rpm;
213  }  }


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