From 7022d3777e6085dfeb6435bdf90e4d5641a65f6a Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Nov 08 2013 03:46:45 +0000 Subject: Update render_setLocalizedXml function. - Previously, at source instance verification, the mime verification was called before knowing whether source instance is a temporal file or a design model. This made centos-art.sh script to stop rendition because, at that point, it is possible to find both compressed files and xml files, not just xml files. This update moves the mime verification into temporal file verification block, where only xml files must be present. --- diff --git a/Automation/Modules/Render/render_setLocalizedXml.sh b/Automation/Modules/Render/render_setLocalizedXml.sh index 5b54554..f6b6e8c 100755 --- a/Automation/Modules/Render/render_setLocalizedXml.sh +++ b/Automation/Modules/Render/render_setLocalizedXml.sh @@ -44,8 +44,8 @@ function render_setLocalizedXml { # instance already exists, don't create a new file for it. # Instead, link it using a symbolic link. if [[ -f ${SOURCE} ]];then - tcar_checkFiles -i 'text/xml' ${SOURCE} if [[ ${SOURCE} =~ "^${TCAR_SCRIPT_TEMPDIR}" ]];then + tcar_checkFiles -i 'text/xml' ${SOURCE} /bin/ln -s ${SOURCE} ${TARGET} return elif [[ ${RENDER_FLAG_NO_LOCALE} == 'true' ]];then