From 4fc728b40538df59911cd87bea5f8194c6d7ebbf Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 12 Nov 2018 19:12:48 +0100 Subject: [PATCH] build: use wget over https (instead of plain rsync) to fetch PO files It is the recommended method at the TP. --- po/update_linguas.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/po/update_linguas.sh b/po/update_linguas.sh index 244ad515..8929bd71 100755 --- a/po/update_linguas.sh +++ b/po/update_linguas.sh @@ -1,10 +1,13 @@ #!/bin/sh # Let this be executed in the po/ subdir. -cd "$(dirname "$0")" || exit +cd "$(dirname "$0")" || exit 1 echo "Updating translations via TP" -rsync -Lrtvz translationproject.org::tp/latest/nano/ . +# First remove existing PO files, as wget will not overwrite them. +rm *.po +wget --recursive --level=1 --accept=po --no-directories --no-verbose \ + https://translationproject.org/latest/nano/ || exit 2 # Are there now PO files that are not in git yet? NEWSTUFF=$(git status --porcelain *.po | grep "^??")