43 |
"/mirrors/centos/$centosrel/extras/SRPMS", |
"/mirrors/centos/$centosrel/extras/SRPMS", |
44 |
"/mirrors/rpmforge/dag/source", |
"/mirrors/rpmforge/dag/source", |
45 |
"/mirrors/atrpms/src/el$centosrel-$arch/atrpms/stable", |
"/mirrors/atrpms/src/el$centosrel-$arch/atrpms/stable", |
46 |
|
"/mirrors/atrpms/src/el$centosrel-$arch/atrpms/testing", |
47 |
"/mirrors/fedora/epel/$centosrel/SRPMS", |
"/mirrors/fedora/epel/$centosrel/SRPMS", |
48 |
"/mirrors/fedora/core/updates/$fedorarel/SRPMS", |
"/mirrors/fedora/core/updates/$fedorarel/SRPMS", |
49 |
"/mirrors/fedora/core/$fedorarel/source/SRPMS", |
"/mirrors/fedora/core/$fedorarel/source/SRPMS", |
201 |
|
|
202 |
print "\n"; |
print "\n"; |
203 |
foreach my $repo ( sort keys %copy ) { |
foreach my $repo ( sort keys %copy ) { |
204 |
foreach my $rpm ( @{$copy{$repo}} ) { |
foreach my $rpm ( keys %{{ map { $_ => 1 } @{$copy{$repo}} }} ) { |
205 |
print "copying $rpm to $repo/\n"; |
print "copying $rpm to $repo/\n"; |
206 |
system(qw(cp --preserve=timestamps), $rpm, "$repo/"); |
system(qw(cp --preserve=timestamps), $rpm, "$repo/"); |
207 |
} |
} |
208 |
} |
} |
209 |
|
|
210 |
print "\n"; |
print "\n"; |
211 |
foreach my $rpm ( @remove, map { $_->{rpm}->filename } grep { $_->{repo} eq 'deleted' } @rpms ) { |
foreach my $rpm ( keys %{{ map { $_ => 1 } (@remove, map { $_->{rpm}->filename } grep { $_->{repo} eq 'deleted' } @rpms) }} ) { |
212 |
print "removing $rpm\n"; |
print "removing $rpm\n"; |
213 |
unlink $rpm; |
unlink $rpm; |
214 |
} |
} |