From 605563ee199a1de3816ad389fc4ab4ed842a0a67 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Mon, 9 May 2022 23:22:39 -0300 Subject: [PATCH] update.sh: tx-push before changing the tx config --- scripts/update.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/update.sh b/scripts/update.sh index eb5f5d913..e076fe0e1 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -25,6 +25,11 @@ cd locales sphinx-intl create-txconfig sphinx-intl update-txconfig-resources -p pot -d . --transifex-project-name python-newest +if [ "$CI" = true ] +then + tx push --source --no-interactive --skip +fi + # Update the translation project's .tx/config cd ../../.. # back to $ROOTDIR mkdir -p .tx @@ -33,9 +38,5 @@ sed cpython/Doc/locales/.tx/config \ -e 's|/LC_MESSAGES/||' \ -e "s|^file_filter|trans.${LANGUAGE}|" \ > .tx/config - -if [ "$CI" = true ] -then - tx push --source --no-interactive --skip -fi + tx pull -l ${LANGUAGE} --use-git-timestamps --parallel