X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=bin%2Fgenerate_mirror_map;fp=bin%2Fgenerate_mirror_map;h=d41107c4b096d244bb1e42fcd35fe3254664b1b6;hb=a938356fed2ea92abed3ad61138f770133bccc90;hp=6d37e1b19cf907c58bd1043d077d3339469b2464;hpb=af178d1101a704ff8eac7822b92df22c53b66af9;p=grml-mirrors.git diff --git a/bin/generate_mirror_map b/bin/generate_mirror_map index 6d37e1b..d41107c 100755 --- a/bin/generate_mirror_map +++ b/bin/generate_mirror_map @@ -17,9 +17,9 @@ foreach my $url ( keys %{$state} ) { $mirror = $state -> { $url } ; # a Mirmon::Mirror object my ($time, $history) = split('-', $mirror->{state_history}); my $last_state = substr($history,-1,1); + next if $last_state eq 'f'; my $region = $mirror->region; $regions_hash->{$region} = 1; - next if $last_state eq 'f'; $mirrors->{ $region } ||= []; $url =~ s/^http:\/\///; push @{$mirrors->{ $region }}, $url;