]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool: adjust translation wget to avoid a https redirection
authorSylvain Beucler <beuc@beuc.net>
Tue, 27 May 2014 20:21:55 +0000 (22:21 +0200)
committerJim Meyering <meyering@fb.com>
Wed, 28 May 2014 14:38:28 +0000 (07:38 -0700)
Context: http://translationproject.org/latest/gnulib redirects to
         https://translationproject.org/latest/gnulib/
Rationale: if the user falls back to wget, she doesn't have rsync and
is probably in a minimal build environment, where packages such as
'ca-certificates' are missing as well, resulting in a failed (and
difficult to detect since ignored) translation initial fetch.
Consequently let's avoid https if possible, and add the missing
trailing slash.  This also avoids an unnecessary 302 redirection.
* gnulib-tool: Add trailing slash to gnulib URL.

ChangeLog
gnulib-tool

index fc8a08153f88607109691b51f675e159e316622c..a0dbedee6d137f279e8836fbebd0fb6a1843ca2e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2014-05-27  Sylvain Beucler  <beuc@beuc.net>
+
+       gnulib-tool: adjust translation wget to avoid a https redirection
+       Context: http://translationproject.org/latest/gnulib redirects to
+          https://translationproject.org/latest/gnulib/
+       Rationale: if the user falls back to wget, she doesn't have rsync and
+       is probably in a minimal build environment, where packages such as
+       'ca-certificates' are missing as well, resulting in a failed (and
+       difficult to detect since ignored) translation initial fetch.
+       Consequently let's avoid https if possible, and add the missing
+       trailing slash.  This also avoids an unnecessary 302 redirection.
+       * gnulib-tool: Add trailing slash to gnulib URL.
+
 2014-05-22  Pádraig Brady  <P@draigBrady.com>
 
        getlogin_r-tests: check return value rather than errno
index 4e7d45e4ea41dd1105448357c6d93938f0ec298d..b852749cc20bc0619b98bbae7705da4acd31f3f9 100755 (executable)
@@ -5031,7 +5031,7 @@ s,//*$,/,'
             if type rsync 2>/dev/null | grep / > /dev/null; then
               rsync -Lrtz "${TP_RSYNC_URI}gnulib/" .
             else
-              wget --quiet -r -l1 -nd -np -A.po "${TP_URL}gnulib"
+              wget --quiet -r -l1 -nd -np -A.po "${TP_URL}gnulib/"
             fi
           }
       )