From 7c9950f95aa319e924573fd4fb6ccff80bc9e93f Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Thu, 19 Dec 2024 23:13:08 -0300 Subject: [PATCH] Drop changelog translation in older Python verisons --- scripts/pull_translations.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/pull_translations.sh b/scripts/pull_translations.sh index 565046c90..d1fd34b0c 100755 --- a/scripts/pull_translations.sh +++ b/scripts/pull_translations.sh @@ -41,3 +41,9 @@ if [ $# -gt 0 ]; then fi tx pull -f -l "${PYDOC_LANGUAGE}" ${resources_to_pull} + +# Drop translation of Python's changelog in python 3.12 or older. +minor_version=$(git branch --show-current | sed 's|^3\.||') +if [ $minor_version -le 12 ]; then + git checkout whatsnew/changelog.po +fi