From 19ebb077c1628dfa2c752c868263abe34379bf47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 16 Aug 2024 08:53:41 +0200 Subject: [PATCH 1/2] MOBILE-4616 lang: Fail if langpack branch is not found --- scripts/update_lang_functions.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/update_lang_functions.sh b/scripts/update_lang_functions.sh index a2605115e..4c5f4a183 100755 --- a/scripts/update_lang_functions.sh +++ b/scripts/update_lang_functions.sh @@ -94,8 +94,12 @@ function load_langpacks { pushd "$LANGPACKS_PATH" git checkout "langpack_$LANGVERSION" - git pull + if [ $? -ne 0 ]; then + echo "Cannot checkout language repository langpack_$LANGVERSION" + exit 1 + fi + git pull if [ $? -ne 0 ]; then echo "Cannot update language repository" exit 1 From b4e8d814635b9a46528de6c432d36ef83cac32bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 16 Aug 2024 09:00:03 +0200 Subject: [PATCH 2/2] MOBILE-4616 chore: Add Moodle 4.5 release temporal number --- src/core/classes/sites/authenticated-site.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/classes/sites/authenticated-site.ts b/src/core/classes/sites/authenticated-site.ts index f396bbd77..a50f3a140 100644 --- a/src/core/classes/sites/authenticated-site.ts +++ b/src/core/classes/sites/authenticated-site.ts @@ -73,6 +73,7 @@ export class CoreAuthenticatedSite extends CoreUnauthenticatedSite { '4.2': 2023042400, '4.3': 2023100900, '4.4': 2024042200, + '4.5': 2024081600, // @TODO correct the final release date. }; // Possible cache update frequencies.