19 |
|
|
20 |
my @repos = ( |
my @repos = ( |
21 |
"$releasedir/$smerel/smeos/$arch/CentOS/RPMS", |
"$releasedir/$smerel/smeos/$arch/CentOS/RPMS", |
22 |
|
"$releasedir/$smerel/smeos/$arch/SME/RPMS", |
23 |
|
"$releasedir/$smerel/smeos/$arch/RPMS", |
24 |
|
"$releasedir/$smerel/smeos/$arch/SME", |
25 |
"$releasedir/$smerel/smeupdates/$arch/RPMS", |
"$releasedir/$smerel/smeupdates/$arch/RPMS", |
26 |
"$releasedir/$smerel/smeupdates-testing/$arch/RPMS", |
"$releasedir/$smerel/smeupdates-testing/$arch/RPMS", |
27 |
"$releasedir/$smerel/smeextras/$arch/RPMS", |
"$releasedir/$smerel/smeextras/$arch/RPMS", |
42 |
"/mirrors/centos/$centosrel/extras/SRPMS", |
"/mirrors/centos/$centosrel/extras/SRPMS", |
43 |
"/mirrors/rpmforge/dag/source", |
"/mirrors/rpmforge/dag/source", |
44 |
"/mirrors/atrpms/src/el$centosrel-$arch/atrpms/stable", |
"/mirrors/atrpms/src/el$centosrel-$arch/atrpms/stable", |
45 |
|
"/mirrors/fedora/epel/$centosrel/SRPMS", |
46 |
"/mirrors/fedora/core/updates/$fedorarel/SRPMS", |
"/mirrors/fedora/core/updates/$fedorarel/SRPMS", |
47 |
"/mirrors/fedora/core/$fedorarel/source/SRPMS", |
"/mirrors/fedora/core/$fedorarel/source/SRPMS", |
48 |
"/mirrors/fedora/extras/$fedorarel/SRPMS", |
"/mirrors/fedora/extras/$fedorarel/SRPMS", |
127 |
@{$repohash{$pkg}{$pos}} = grep { $_ gt $repohash{$pkg}{latest} } @{$repohash{$pkg}{$pos}}; |
@{$repohash{$pkg}{$pos}} = grep { $_ gt $repohash{$pkg}{latest} } @{$repohash{$pkg}{$pos}}; |
128 |
delete $repohash{$pkg}{$pos}; |
delete $repohash{$pkg}{$pos}; |
129 |
} |
} |
130 |
} else { |
} elsif ( ref($repohash{$pkg}{$pos}) eq 'ARRAY' ) { |
131 |
my ($latest, @rest) = sort { $b cmp $a } @{$repohash{$pkg}{$pos}}; |
my ($latest, @rest) = sort { $b cmp $a } @{$repohash{$pkg}{$pos}}; |
132 |
delete $repohash{$pkg}{$pos}; |
delete $repohash{$pkg}{$pos}; |
133 |
if ( $repohash{$pkg}{latest} && $repohash{$pkg}{latest} ge $latest ) { |
if ( $repohash{$pkg}{latest} && $repohash{$pkg}{latest} ge $latest ) { |
193 |
push @sources, $src if ($src =~ s/\.el\d\.at\./\.at\./); |
push @sources, $src if ($src =~ s/\.el\d\.at\./\.at\./); |
194 |
push @sources, $src if ($src =~ s/\.fc\d\.at\./\.at\./); |
push @sources, $src if ($src =~ s/\.fc\d\.at\./\.at\./); |
195 |
push @sources, $src if ($src =~ s/\.rf\./\.dag\./); |
push @sources, $src if ($src =~ s/\.rf\./\.dag\./); |
196 |
|
push @sources, $src if ($src =~ s/\.0\.el\d+\./\.at\./); |
197 |
|
push @sources, $src if ($src =~ s/\.el\d+\./\.at\./); |
198 |
|
|
199 |
|
|
200 |
my $found = 0; |
my $found = 0; |
201 |
foreach my $source ( @sources ) { |
foreach my $source ( @sources ) { |
243 |
foreach my $repo ( sort keys %changed ) { |
foreach my $repo ( sort keys %changed ) { |
244 |
next if $repo =~ m{^$stagedir}; |
next if $repo =~ m{^$stagedir}; |
245 |
|
|
246 |
print "rebuilding $repo/i386...\n"; |
my $dir=`readlink -f $repo/$arch`; |
247 |
system(qw(createrepo), "$repo/i386"); |
chomp $dir; |
248 |
system(qw(repoview), "$repo/i386"); |
print "rebuilding $dir...\n"; |
249 |
|
system(qw(createrepo), "$dir"); |
250 |
|
system(qw(repoview), "$dir"); |
251 |
} |
} |
252 |
|
|