/[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.88 by unnilennium, Tue Feb 14 21:38:34 2017 UTC Revision 1.90 by jpp, Fri Feb 8 06:26:29 2019 UTC
# Line 28  my $osdir = 'SME'; Line 28  my $osdir = 'SME';
28  my $disttag = 'sme';  my $disttag = 'sme';
29  my $repotag = 'sme';  my $repotag = 'sme';
30    
31  my $distrepo = { '8' => { active    => 1,  my $distrepo = { '8' => { active    => 0,
32                            centos    => 5,                            centos    => 5,
33                            archs     => [ 'i386', 'x86_64' ],                            archs     => [ 'i386', 'x86_64' ],
34                            repo      => '/build/smeserver/repo/8/',                            repo      => '/build/smeserver/repo/8/',
# Line 70  my $distrepo = { '8' => { active    => 1 Line 70  my $distrepo = { '8' => { active    => 1
70  # rel:  # rel:
71  # orig:  # orig:
72  # base, os, stage:  # base, os, stage:
73  my $repos = { "${repotag}os"              => { prio => 19, inc => 1, ver => 1, rel => 1, os => 1 },  my $repos = { "${repotag}os"              => { prio => 29, inc => 1, ver => 1, rel => 1, os => 1 },
74                "${repotag}updates"         => { prio => 18, inc => 1, ver => 1, rel => 1 },                "${repotag}updates"         => { prio => 28, inc => 1, ver => 1, rel => 1 },
75                "${repotag}updates-testing" => { prio => 17, inc => 1, ver => 1, rel => 3 },                "${repotag}updates-testing" => { prio => 27, inc => 1, ver => 1, rel => 3 },
76                "${repotag}extras"          => { prio => 16, inc => 0, ver => 1, rel => 1 },                "${repotag}extras"          => { prio => 26, inc => 0, ver => 1, rel => 1 },
77                "${repotag}addons"          => { prio => 15, inc => 0, ver => 1, rel => 1 },                "${repotag}addons"          => { prio => 25, inc => 0, ver => 1, rel => 1 },
78                "${repotag}contribs"        => { prio => 14, inc => 0, ver => 1, rel => 1 },                "${repotag}contribs"        => { prio => 24, inc => 0, ver => 1, rel => 1 },
79                "${repotag}test"            => { prio => 13, inc => 0, ver => 2, rel => 3, devel => 2 },                "${repotag}test"            => { prio => 23, inc => 0, ver => 2, rel => 3, devel => 2 },
80                "${repotag}dev"             => { prio => 12, inc => 0, ver => 1, rel => 1, devel => 1 },                "${repotag}dev"             => { prio => 22, inc => 0, ver => 1, rel => 1, devel => 1 },
81                'centos'                    => { prio => 10, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },                'centos'                    => { prio => 21, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },
82                'remi'                      => { prio =>  9, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },                'remisafe'                  => { prio => 12, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },
83                'remisafe'                  => { prio =>  9, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },                'remi'                      => { prio => 11, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },
84                'epel'                      => { prio =>  8, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },                'epel'                      => { prio => 10, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },
85                'rpmforge'                  => { prio =>  7, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },                'epeltesting'               => { prio =>  9, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },
86                'atrpms'                    => { prio =>  6, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },                'rpmfusion'                 => { prio =>  8, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },
87                  'rpmforge'                  => { prio =>  6, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },
88                  'atrpms'                    => { prio =>  5, inc => 0, ver => 0, rel => 0, orig => 1, base => 1 },
89                'builds'                    => { prio =>  4, inc => 0, ver => 0, rel => 0, orig => 1 },                'builds'                    => { prio =>  4, inc => 0, ver => 0, rel => 0, orig => 1 },
90                'community'                 => { prio =>  2, inc => 0, ver => 0, rel => 0, orig => 1 },                'community'                 => { prio =>  2, inc => 0, ver => 0, rel => 0, orig => 1 },
91                '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 110  my $baserepo = { "~S${repotag}os/~A/" => Line 112  my $baserepo = { "~S${repotag}os/~A/" =>
112                   '/mirrors/centos-vault/~C/os/~A/' => 'centos',                   '/mirrors/centos-vault/~C/os/~A/' => 'centos',
113                   '/mirrors/centos-vault/~C/extras/~A/' => 'centos',                   '/mirrors/centos-vault/~C/extras/~A/' => 'centos',
114                   '/mirrors/fedora/epel/~C/~A/' => 'epel',                   '/mirrors/fedora/epel/~C/~A/' => 'epel',
115                   '/mirrors/fedora/epel/testing/~C/~A/' => 'epel',                   '/mirrors/fedora/epel/testing/~C/~A/' => 'epeltesting',
116                   '/mirrors/remi/enterprise/~C/remi/~A/' => 'remi',                   '/mirrors/remi/enterprise/~C/remi/~A/' => 'remi',
117                   '/mirrors/remi/SRPMS/' => 'remi',                   '/mirrors/remi/SRPMS/' => 'remi',
118                   '/mirrors/remi/enterprise/~C/safe/~A/' => 'remisafe',                   '/mirrors/remi/enterprise/~C/safe/~A/' => 'remisafe',
119                   '/mirrors/remi/SRPMS/' => 'remisafe',                   '/mirrors/rpmfusion/updates/~C/~A/' => 'rpmfusion',
120                   '/mirrors/rpmforge/redhat/el~C/en/~A/dag/' => 'rpmforge',                   '/mirrors/rpmforge/redhat/el~C/en/~A/dag/' => 'rpmforge',
121                   '/mirrors/rpmforge/redhat/el~C/en/~A/extras/' => 'rpmforge',                   '/mirrors/rpmforge/redhat/el~C/en/~A/extras/' => 'rpmforge',
122                   '/mirrors/rpmforge/source/' => 'rpmforge',                   '/mirrors/rpmforge/source/' => 'rpmforge',
# Line 129  my $baserepo = { "~S${repotag}os/~A/" => Line 131  my $baserepo = { "~S${repotag}os/~A/" =>
131  my $skippkg = { '8'  => { 'atrpms'        => { map { $_ => 1 } ( 'clamav', 'gnupg' ) },  my $skippkg = { '8'  => { 'atrpms'        => { map { $_ => 1 } ( 'clamav', 'gnupg' ) },
132                            'centos'        => { map { $_ => 1 } ( 'horde', 'imp-h3', 'ingo-h3', 'turba-h3' ) },                            'centos'        => { map { $_ => 1 } ( 'horde', 'imp-h3', 'ingo-h3', 'turba-h3' ) },
133                            'epel'          => { map { $_ => 1 } ( 'clamav', 'cppunit', 'fping', 'html2ps', 'horde', 'libtalloc', 'libtdb', 'oidentd', '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', 'smolt' ) },                            'epel'          => { map { $_ => 1 } ( 'clamav', 'cppunit', 'fping', 'html2ps', 'horde', 'libtalloc', 'libtdb', 'oidentd', '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', 'smolt' ) },
134                              'epeltesting'   => { map { $_ => 1 } ( 'clamav', 'cppunit', 'fping', 'html2ps', 'horde', 'libtalloc', 'libtdb', 'oidentd', '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', 'smolt' ) },
135                            'rpmforge'      => { map { $_ => 1 } ( 'dovecot', 'libtalloc', 'mod_auth_tkt', 'perl-Test-Inline', 'spamassassin', 'lzo',  'perl-Convert-TNEF', 'perl-Mail-SPF', 'proftpd', 'erlang', 'perl-DateTime-Format-Mail', 'perl-DateTime-Format-W3CDTF', 'perl-Email-Abstract', 'perl-Email-MIME-Attachment-Stripper', 'perl-Email-Reply', 'perl-Font-AFM', 'perl-IPC-Run', 'rkhunter') },                            'rpmforge'      => { map { $_ => 1 } ( 'dovecot', 'libtalloc', 'mod_auth_tkt', 'perl-Test-Inline', 'spamassassin', 'lzo',  'perl-Convert-TNEF', 'perl-Mail-SPF', 'proftpd', 'erlang', 'perl-DateTime-Format-Mail', 'perl-DateTime-Format-W3CDTF', 'perl-Email-Abstract', 'perl-Email-MIME-Attachment-Stripper', 'perl-Email-Reply', 'perl-Font-AFM', 'perl-IPC-Run', 'rkhunter') },
136                          },                          },
137                  '9'  => { 'atrpms'        => { map { $_ => 1 } ( 'clamav', 'perl-Pod-Escapes', 'perl-Pod-Simple' ) },                  '9'  => { 'atrpms'        => { map { $_ => 1 } ( 'clamav', 'perl-Pod-Escapes', 'perl-Pod-Simple','libvorbis' , 'libogg','iksemel' ) },
138                            'epel'          => { map { $_ => 1 } ( 'oidentd', 'perl-Razor-Agent' ) },                            'epel'          => { map { $_ => 1 } ( 'clamav', 'oidentd', 'perl-Razor-Agent' ) },
139                            'rpmforge'      => { map { $_ => 1 } ( 'perl-CGI', 'perl-Compress-Raw-Zlib', 'perl-ExtUtils-ParseXS', 'perl-Pod-Escapes', 'perl-Pod-Simple', 'perl-Time-HiRes', 'perl-version', 'spamassassin', 'portreserve', 'perl-libwww-perl' , 'lzo', 'perl-BSD-Resource', 'perl-Convert-ASN1', 'perl-Devel-StackTrace', 'perl-Digest-SHA1', 'perl-MIME-tools', 'perl-MailTools', 'perl-PPI', 'perl-URI', 'perl-XML-NamespaceSupport', 'perl-XML-Parser', 'perl-XML-SAX-Writer', 'perl-YAML-Syck', 'proftpd', 'syslinux') },                            'epeltesting'   => { map { $_ => 1 } ( 'clamav', 'oidentd', 'perl-Razor-Agent' ) },
140                              'rpmforge'      => { map { $_ => 1 } ( 'perl-CGI', 'perl-Compress-Raw-Zlib', 'perl-ExtUtils-ParseXS', 'perl-Pod-Escapes', 'perl-Pod-Simple', 'perl-Time-HiRes', 'perl-version', 'spamassassin', 'portreserve', 'perl-libwww-perl' , 'lzo', 'perl-BSD-Resource', 'perl-Convert-ASN1', 'perl-DBD-SQLite', 'perl-Devel-StackTrace', 'perl-Digest-SHA1', 'perl-JSON', 'perl-MIME-tools', 'perl-MailTools', 'perl-PPI', 'perl-URI', 'perl-XML-NamespaceSupport', 'perl-XML-Parser', 'perl-XML-SAX-Writer', 'perl-YAML-Syck', 'proftpd', 'syslinux') },
141                          },                          },
142                  '10' => {                  '10' => {
143                              'centos'        => { map { $_ => 1 } ( 'samba' ) },
144                              'epel'          => { map { $_ => 1 } ( 'clamav') },
145                              'epeltesting'   => { map { $_ => 1 } ( 'clamav', 'tidy') },
146                          },                          },
147                };                };
148    
149  # add here include only conditions  # add here include only conditions
150  # for each version if a repo is listed here, only listed rpm will be considered  # for each version if a repo is listed here, only listed rpm will be considered
151  my $onlypkg = { '8' => {  my $onlypkg = { '8' => {
152                            'remi' => { },                            'remi' => { },
153                            'remisafe' => { },                            'remisafe' => { },
154                          },                          },
155                  '9'  => {                  '9'  => {
# Line 444  foreach my $ver ( sort { $a <=> $b } key Line 451  foreach my $ver ( sort { $a <=> $b } key
451                              push @{$p2->{repos}}, $p2->{repo};                              push @{$p2->{repos}}, $p2->{repo};
452                          }                          }
453                      } elsif ( scalar @{$acnt->{$r}->{$p}->{$a}} != 1 ) {                      } elsif ( scalar @{$acnt->{$r}->{$p}->{$a}} != 1 ) {
454                          print "\n * many packages ($r, $a, $p)\n" unless $p =~ m{^syslinux-nonlinux-[0-9]};                          print "\n * many packages ($r, $a, $p)\n" unless ( ($p =~ m{^syslinux-nonlinux-[0-9]}) || ($p =~ m{^lib(mcrypt|webp)-[0-9]})  ) ;
455                      }                      }
456                  }                  }
457              }              }


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