From 99668ad59584d00a7f5dab9ad010838b8ca88c02 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jan 17 2014 15:28:36 +0000 Subject: Add workplace verification before locale content. - Previously, locale module didn't verify whether the working directory was a supported working directory or not. As consequence, variable expansion inside configuration files at locale time might be expanded to a value different from that expected. This update changes the locale module to verify the workplace before localize any content. The main problem to solve here is the expansion of TCAR_WORKDIR variable. If the working directory isn't verified, and this value isn't retrieved from the configuration file inside it, TCAR_WORKDIR is expanded to its default value which might be not the place where your working directory is really stored in. As consequence, automation script will try to take content from a place that might not exist, making the automation scripts to fail at some point. --- diff --git a/Scripts/Modules/Locale/locale.sh b/Scripts/Modules/Locale/locale.sh index fa1457c..2eb933d 100755 --- a/Scripts/Modules/Locale/locale.sh +++ b/Scripts/Modules/Locale/locale.sh @@ -38,6 +38,8 @@ # the command-line and the --recursive option is also provided). function locale { + tcar_checkWorkplace + # Define flags controlling they way locale module produce # localization files. local LOCALE_FLAG_RECURSIVE="false"