summaryrefslogtreecommitdiffstats
path: root/bin/generate-mirror-mail.pl
diff options
context:
space:
mode:
Diffstat (limited to 'bin/generate-mirror-mail.pl')
-rwxr-xr-xbin/generate-mirror-mail.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/generate-mirror-mail.pl b/bin/generate-mirror-mail.pl
index a5966e9..6710118 100755
--- a/bin/generate-mirror-mail.pl
+++ b/bin/generate-mirror-mail.pl
@@ -22,7 +22,7 @@ generate-mirror-mail.pl - Generate notification mails for broken mirrors
=head1 DESCRIPTION
Run the script and pass it URLs to the archweb mirror page (e.g.
-<https://www.archlinux.org/mirrors/melbourneitmirror.net/>) via STDIN. If the
+<https://archlinux.org/mirrors/melbourneitmirror.net/>) via STDIN. If the
mirror has a problem the script will generate an appropriate mail and run
`compose-mail-from-stdin` which should be a script that starts your favourite
mail client with the mail. You can also let the script send the mail directly
@@ -91,7 +91,7 @@ my $cookie_jar = HTTP::Cookies->new(file => dirname($0) . "/../cookie_jar", auto
my $mech = WWW::Mechanize->new(agent => "arch-mirror-tools", cookie_jar => $cookie_jar);
sub login {
- $mech->get("https://www.archlinux.org/login/");
+ $mech->get("https://archlinux.org/login/");
my $res = $mech->submit_form(
form_id => "dev-login-form",
fields => {
@@ -145,7 +145,7 @@ while (<STDIN>) {
my $url = $_;
chomp($url);
die "Skipping non-mirror detail URL" if $url =~ m/\/[0-9]+(\/|$)/;
- die "Skipping non-mirror detail URL" if $url eq "https://www.archlinux.org/mirrors/status/";
+ die "Skipping non-mirror detail URL" if $url eq "https://archlinux.org/mirrors/status/";
my ($mirror_name) = ($url =~ m#/([^/]+)/?$#);
my $json = get_mirror_json($url);