From 803b7ce56fac86ec6d3b3e6dd37d49424b92b884 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 13 Mar 2018 10:57:41 +0100 Subject: generate-mirror-mail.pl: Skip inactive mirror URLs Signed-off-by: Florian Pritz --- bin/generate-mirror-mail.pl | 1 + 1 file changed, 1 insertion(+) 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 () { 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) { -- cgit v1.2.3-24-g4f1b