/[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.36 by slords, Tue Jan 22 20:23:58 2008 UTC Revision 1.37 by slords, Tue Jan 22 20:34:23 2008 UTC
# Line 29  my $distrepo = { '7' => { active   => 1, Line 29  my $distrepo = { '7' => { active   => 1,
29                            os       => 'RPMS/',                            os       => 'RPMS/',
30                            builds   => '/builds/smeserver-7-core/',                            builds   => '/builds/smeserver-7-core/',
31                            contribs => '/builds/smeserver-7-contribs/',                            contribs => '/builds/smeserver-7-contribs/',
                           qa       => '/builds/smeserver-7-qa/',  
32                            stage    => '/stage/7/',                            stage    => '/stage/7/',
33                          },                          },
34                   '8' => { active   => 1,                   '8' => { active   => 1,
# Line 39  my $distrepo = { '7' => { active   => 1, Line 38  my $distrepo = { '7' => { active   => 1,
38                            os       => '',                            os       => '',
39                            builds   => '/builds/smeserver-8-core/',                            builds   => '/builds/smeserver-8-core/',
40                            contribs => '/builds/smeserver-8-contribs/',                            contribs => '/builds/smeserver-8-contribs/',
                           qa       => '/builds/smeserver-8-qa/',  
41                            stage    => '/stage/8/',                            stage    => '/stage/8/',
42                          },                          },
43                 };                 };
# Line 143  foreach my $smever ( sort { $a <=> $b } Line 141  foreach my $smever ( sort { $a <=> $b }
141              last unless $dir =~ m{~A};              last unless $dir =~ m{~A};
142          }          }
143      }      }
144      find( { wanted => sub { process_rpm($_, $smever, 'builds'); }, no_chdir => 1, follow_fast => 1 }, ( $distrepo->{$smever}->{'builds'}, $distrepo->{$smever}->{'qa'} ) );      find( { wanted => sub { process_rpm($_, $smever, 'builds'); }, no_chdir => 1, follow_fast => 1 }, $distrepo->{$smever}->{'builds'} );
145      find( { wanted => sub { process_rpm($_, $smever, 'contribs'); }, no_chdir => 1, follow_fast => 1 }, $distrepo->{$smever}->{'contribs'} );      find( { wanted => sub { process_rpm($_, $smever, 'contribs'); }, no_chdir => 1, follow_fast => 1 }, $distrepo->{$smever}->{'contribs'} );
146    
147      foreach my $base ( sort keys %$rpms ) {      foreach my $base ( sort keys %$rpms ) {
# Line 407  foreach my $smever ( sort { $a <=> $b } Line 405  foreach my $smever ( sort { $a <=> $b }
405          }          }
406      }      }
407      unless ( $opts{t} ) {      unless ( $opts{t} ) {
408          finddepth(sub{rmdir}, $distrepo->{$smever}->{$_}) foreach ('builds','contribs','qa');          finddepth(sub{rmdir}, $distrepo->{$smever}->{$_}) foreach ('builds','contribs');
409      }      }
410  }  }
411    


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