diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-03-13 10:57:41 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-03-13 10:57:41 +0100 |
commit | 803b7ce56fac86ec6d3b3e6dd37d49424b92b884 (patch) | |
tree | bc7b758149559da8ef39d1ac74dc046ff9ff17f5 /bin | |
parent | cbfdf3d4bf904599a1e04cf1f338e4f30648a8e9 (diff) | |
download | arch-mirror-tools-803b7ce56fac86ec6d3b3e6dd37d49424b92b884.tar.gz arch-mirror-tools-803b7ce56fac86ec6d3b3e6dd37d49424b92b884.tar.xz |
generate-mirror-mail.pl: Skip inactive mirror URLs
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/generate-mirror-mail.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/generate-mirror-mail.pl b/bin/generate-mirror-mail.pl index 24e714a..6c290d9 100755 --- a/bin/generate-mirror-mail.pl +++ b/bin/generate-mirror-mail.pl @@ -138,6 +138,7 @@ while (<STDIN>) { my @connection_failed; for my $mirror (@{$json->{urls}}) { + next if not $mirror->{active}; if ($mirror->{last_sync}) { my $time = str2time($mirror->{last_sync}); if ($time < time() - 60*60*24*3) { |