/[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.14 by slords, Tue Jul 3 14:14:22 2007 UTC Revision 1.17 by slords, Thu Jul 5 14:17:56 2007 UTC
# Line 210  print "\n"; Line 210  print "\n";
210  foreach my $repo ( sort keys %copy ) {  foreach my $repo ( sort keys %copy ) {
211          foreach my $rpm ( keys %{{ map { $_ => 1 } @{$copy{$repo}} }} ) {          foreach my $rpm ( keys %{{ map { $_ => 1 } @{$copy{$repo}} }} ) {
212                  print "copying $rpm to $repo/\n";                  print "copying $rpm to $repo/\n";
213                    mkdir "$repo" unless -d "$repo";
214                  system(qw(cp --preserve=timestamps), $rpm, "$repo/");                  system(qw(cp --preserve=timestamps), $rpm, "$repo/");
215          }          }
216  }  }
# Line 226  foreach my $repo ( sort keys %changed ) Line 227  foreach my $repo ( sort keys %changed )
227          chomp $dir;          chomp $dir;
228          print "rebuilding $dir...\n";          print "rebuilding $dir...\n";
229          system(qw(createrepo), "$dir");          system(qw(createrepo), "$dir");
230            system(qw(rm -rf), "$dir/.olddata") if -d "$dir/.olddata";
231          system(qw(repoview), "$dir");          system(qw(repoview), "$dir");
232            system(qw(rm -rf), "$dir/.repodata") if "$dir/.repodata";
233  }  }


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