Mercurial > gnulib
changeset 17680:0d94a18a81f9
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.
author | Sylvain Beucler <beuc@beuc.net> |
---|---|
date | Tue, 27 May 2014 22:21:55 +0200 |
parents | 4759a0035187 |
children | 31c020702547 |
files | ChangeLog gnulib-tool |
diffstat | 2 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu May 22 17:49:33 2014 +0100 +++ b/ChangeLog Tue May 27 22:21:55 2014 +0200 @@ -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
--- a/gnulib-tool Thu May 22 17:49:33 2014 +0100 +++ b/gnulib-tool Tue May 27 22:21:55 2014 +0200 @@ -5031,7 +5031,7 @@ 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 } )