]> Cypherpunks.ru repositories - gostls13.git/commitdiff
lib/time: follow redirects in curl
authorKyle Shannon <kyle@pobox.com>
Wed, 24 Jan 2018 00:54:57 +0000 (17:54 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 24 Jan 2018 04:39:28 +0000 (04:39 +0000)
Starting on or about the 2018c archives, www.iana.org is redirected to
data.iana.org.  Tell curl to follow the redirect.

Updates: #22487

Change-Id: I00acada1a3ba01ef701d6d4ffae6cc2cbb6a068f
Reviewed-on: https://go-review.googlesource.com/89375
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
lib/time/update.bash

index 16552fb6f916d6edccca2573a182d293aa853bf8..b54fc9e4f612bb2bda9b01849bc29f9b934621b3 100755 (executable)
@@ -16,8 +16,8 @@ rm -rf work
 mkdir work
 cd work
 mkdir zoneinfo
-curl -O http://www.iana.org/time-zones/repository/releases/tzcode$CODE.tar.gz
-curl -O http://www.iana.org/time-zones/repository/releases/tzdata$DATA.tar.gz
+curl -L -O http://www.iana.org/time-zones/repository/releases/tzcode$CODE.tar.gz
+curl -L -O http://www.iana.org/time-zones/repository/releases/tzdata$DATA.tar.gz
 tar xzf tzcode$CODE.tar.gz
 tar xzf tzdata$DATA.tar.gz