/[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.53 by slords, Fri Feb 12 18:52:06 2010 UTC Revision 1.54 by slords, Wed Feb 24 18:14:55 2010 UTC
# Line 28  my @archs = ( 'i386', 'x86_64' ); Line 28  my @archs = ( 'i386', 'x86_64' );
28    
29  my $distrepo = { '7' => { active    => 1,  my $distrepo = { '7' => { active    => 1,
30                            centos    => 4,                            centos    => 4,
                           fedora    => 3,  
31                            repo      => '/releases/7/',                            repo      => '/releases/7/',
32                            os        => 'RPMS/',                            os        => 'RPMS/',
33                            builds    => '/builds/smeserver-7-core/',                            builds    => '/builds/smeserver-7-core/',
# Line 37  my $distrepo = { '7' => { active    => 1 Line 36  my $distrepo = { '7' => { active    => 1
36                          },                          },
37                   '8' => { active    => 1,                   '8' => { active    => 1,
38                            centos    => 5,                            centos    => 5,
                           fedora    => 6,  
39                            repo      => '/releases/testing/8/',                            repo      => '/releases/testing/8/',
40                            os        => '',                            os        => '',
41                            builds    => '/builds/smeserver-8-core/',                            builds    => '/builds/smeserver-8-core/',
# Line 56  my $repos = { "${repotag}os" Line 54  my $repos = { "${repotag}os"
54                "${repotag}dev"             => { prio => 11, inc => 0, ver => 1, rel => 1, devel => 1 },                "${repotag}dev"             => { prio => 11, inc => 0, ver => 1, rel => 1, devel => 1 },
55                'centos'                    => { prio => 10, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },                'centos'                    => { prio => 10, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },
56                'epel'                      => { prio =>  9, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },                'epel'                      => { prio =>  9, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },
               'fedora-extras'             => { prio =>  8, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },  
57                'rpmforge'                  => { prio =>  7, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },                'rpmforge'                  => { prio =>  7, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },
58                'atrpms'                    => { prio =>  6, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },                'atrpms'                    => { prio =>  6, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },
               'fedora'                    => { prio =>  5, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },  
59                'builds'                    => { prio =>  4, inc => 0, ver => 0, rel => 0, orig => 1 },                'builds'                    => { prio =>  4, inc => 0, ver => 0, rel => 0, orig => 1 },
60                'community'                 => { prio =>  2, inc => 0, ver => 0, rel => 0, orig => 1 },                'community'                 => { prio =>  2, inc => 0, ver => 0, rel => 0, orig => 1 },
61                'stage'                     => { prio =>  1, inc => 0, ver => 0, rel => 0, stage => 1, os => 1 },                'stage'                     => { prio =>  1, inc => 0, ver => 0, rel => 0, stage => 1, os => 1 },
# Line 80  my $baserepo = { "~S${repotag}os/~A/$osd Line 76  my $baserepo = { "~S${repotag}os/~A/$osd
76                   '/mirrors/centos/~C/extras/~A/RPMS/' => 'centos',                   '/mirrors/centos/~C/extras/~A/RPMS/' => 'centos',
77                   '/mirrors/fedora/epel/~C/~A/' => 'epel',                   '/mirrors/fedora/epel/~C/~A/' => 'epel',
78                   '/mirrors/fedora/epel/testing/~C/~A/' => 'epel',                   '/mirrors/fedora/epel/testing/~C/~A/' => 'epel',
                  '/mirrors/fedora/extras/~F/~A/' => 'fedora-extras',  
79                   '/mirrors/rpmforge/dag/redhat/el~C/en/~A/dag/RPMS/' => 'rpmforge',                   '/mirrors/rpmforge/dag/redhat/el~C/en/~A/dag/RPMS/' => 'rpmforge',
80                   '/mirrors/rpmforge/dag/source/' => 'rpmforge',                   '/mirrors/rpmforge/dag/source/' => 'rpmforge',
81                   '/mirrors/atrpms/el~C-~A/atrpms/stable/' => 'atrpms',                   '/mirrors/atrpms/el~C-~A/atrpms/stable/' => 'atrpms',
82                   '/mirrors/atrpms/el~C-~A/atrpms/testing/' => 'atrpms',                   '/mirrors/atrpms/el~C-~A/atrpms/testing/' => 'atrpms',
83                   '/mirrors/atrpms/src/el~C-~A/atrpms/stable/' => 'atrpms',                   '/mirrors/atrpms/src/el~C-~A/atrpms/stable/' => 'atrpms',
84                   '/mirrors/atrpms/src/el~C-~A/atrpms/testing/' => 'atrpms',                   '/mirrors/atrpms/src/el~C-~A/atrpms/testing/' => 'atrpms',
                  '/mirrors/fedora/core/~F/~A/os/Fedora/RPMS/' => 'fedora',  
                  '/mirrors/fedora/core/updates/~F/~A/' => 'fedora',  
85                 };                 };
86    
87  if ( $opts{q} ) {  if ( $opts{q} ) {
# Line 100  if ( $opts{q} ) { Line 93  if ( $opts{q} ) {
93    
94  my $skippkg = { '7' => { 'centos'        => { map { $_ => 1 } ( 'horde', 'imp-h3', 'ingo-h3', 'turba-h3' ) },  my $skippkg = { '7' => { 'centos'        => { map { $_ => 1 } ( 'horde', 'imp-h3', 'ingo-h3', 'turba-h3' ) },
95                           'epel'          => { map { $_ => 1 } ( 'clamav', 'fping', 'ocsinventory', 'perl-Compress-Bzip2', 'perl-Compress-Raw-Zlib', 'perl-Compress-Raw-Bzip2', 'perl-Crypt-OpenSSL-Bignum', 'perl-Crypt-OpenSSL-Random', 'perl-Crypt-OpenSSL-RSA', 'perl-DateTime', 'perl-Razor-Agent', 'perl-Text-Iconv', 'proftpd' ) },                           'epel'          => { map { $_ => 1 } ( 'clamav', 'fping', 'ocsinventory', 'perl-Compress-Bzip2', 'perl-Compress-Raw-Zlib', 'perl-Compress-Raw-Bzip2', 'perl-Crypt-OpenSSL-Bignum', 'perl-Crypt-OpenSSL-Random', 'perl-Crypt-OpenSSL-RSA', 'perl-DateTime', 'perl-Razor-Agent', 'perl-Text-Iconv', 'proftpd' ) },
                          'fedora-extras' => { map { $_ => 1 } ( 'ddclient', 'hddtemp', 'pam_abl', 'perl-Compress-Bzip2', 'perl-Error', 'perl-HTML-Format', 'perl-MIME-Types', 'perl-Net-IP', 'perl-Archive-Zip', 'perl-Class-Singleton', 'perl-Razor-Agent', 'perl-Test-Inline', 'perl-Text-Autoformat', 'perl-Text-Iconv', 'perl-Text-Reform', 'perl-XML-RSS' ) },  
96                           'rpmforge'      => { map { $_ => 1 } ( 'perl-Test-Inline' ) },                           'rpmforge'      => { map { $_ => 1 } ( 'perl-Test-Inline' ) },
97                           'atrpms'        => { map { $_ => 1 } ( 'check4updates', 'dovecot', 'trac', 'yum' ) },                           'atrpms'        => { map { $_ => 1 } ( 'check4updates', 'dovecot', 'trac', 'yum' ) },
98                         },                         },
99                  '8' => { 'centos'        => { map { $_ => 1 } ( 'horde', 'imp-h3', 'ingo-h3', 'turba-h3' ) },                  '8' => { 'centos'        => { map { $_ => 1 } ( 'horde', 'imp-h3', 'ingo-h3', 'turba-h3' ) },
                          'fedora'        => { map { $_ => 1 } ( 'kernel', 'kernel-xen', 'libgsf' ) },  
100                           'epel'          => { map { $_ => 1 } ( 'clamav', 'horde', 'perl-Compress-Bzip2', 'perl-Compress-Raw-Zlib', 'perl-Compress-Raw-Bzip2', 'perl-Crypt-OpenSSL-Bignum', 'perl-Crypt-OpenSSL-Random', 'perl-Crypt-OpenSSL-RSA', 'perl-Razor-Agent', 'proftpd', 'smolt' ) },                           'epel'          => { map { $_ => 1 } ( 'clamav', 'horde', 'perl-Compress-Bzip2', 'perl-Compress-Raw-Zlib', 'perl-Compress-Raw-Bzip2', 'perl-Crypt-OpenSSL-Bignum', 'perl-Crypt-OpenSSL-Random', 'perl-Crypt-OpenSSL-RSA', 'perl-Razor-Agent', 'proftpd', 'smolt' ) },
                          'fedora-extras' => { map { $_ => 1 } ( 'dstat', 'gocr', 'horde', 'oidentd', 'perl-Compress-Bzip2', 'perl-Crypt-OpenSSL-Bignum', 'perl-Crypt-OpenSSL-Random', 'perl-Crypt-OpenSSL-RSA', 'perl-Test-Inline', 'perl-Razor-Agent', 'smolt' ) },  
101                           'rpmforge'      => { map { $_ => 1 } ( 'perl-Test-Inline' ) },                           'rpmforge'      => { map { $_ => 1 } ( 'perl-Test-Inline' ) },
102                         },                         },
103                };                };
# Line 131  foreach my $ver ( sort { $a <=> $b } key Line 121  foreach my $ver ( sort { $a <=> $b } key
121          $bdir =~ s/~S/$distrepo->{$ver}->{repo}/;          $bdir =~ s/~S/$distrepo->{$ver}->{repo}/;
122          $bdir =~ s/~s/$ver/;          $bdir =~ s/~s/$ver/;
123          $bdir =~ s/~C/$distrepo->{$ver}->{centos}/;          $bdir =~ s/~C/$distrepo->{$ver}->{centos}/;
         $bdir =~ s/~F/$distrepo->{$ver}->{fedora}/;  
124          for my $arch ( @archs, 'SRPMS/' ) {          for my $arch ( @archs, 'SRPMS/' ) {
125              my $adir = $bdir;              my $adir = $bdir;
126              if ( $arch eq 'SRPMS/' ) {              if ( $arch eq 'SRPMS/' ) {


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