[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] translationproject fetch: with wget, avoid a https redirecti
From: |
Sylvain Beucler |
Subject: |
[PATCH 1/2] translationproject fetch: with wget, avoid a https redirection |
Date: |
Tue, 27 May 2014 22:21:55 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnulib-tool b/gnulib-tool
index 4e7d45e..b852749 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -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
}
)
--
2.0.0.rc2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 1/2] translationproject fetch: with wget, avoid a https redirection,
Sylvain Beucler <=