summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-03-13 10:57:41 +0100
committerFlorian Pritz <bluewind@xinu.at>2018-03-13 10:57:41 +0100
commit803b7ce56fac86ec6d3b3e6dd37d49424b92b884 (patch)
treebc7b758149559da8ef39d1ac74dc046ff9ff17f5 /bin
parentcbfdf3d4bf904599a1e04cf1f338e4f30648a8e9 (diff)
downloadarch-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-xbin/generate-mirror-mail.pl1
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) {