From 4939be236ffc88fbf10f4ab138cc743b076259c1 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 19 Mar 2014 07:16:41 +0100 Subject: [PATCH] Fix horizon-upstream-translation-update Check if there is already a .tx folder and run tx --init only if there is none. The horizon repo currently has one and thus the job fails to build. Change-Id: Ifa3115943c49550f3d72007484e9343f7de1d8ca --- .../files/slave_scripts/upstream_translation_horizon.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/jenkins/files/slave_scripts/upstream_translation_horizon.sh b/modules/jenkins/files/slave_scripts/upstream_translation_horizon.sh index 5050b22aef..01ecf74c20 100755 --- a/modules/jenkins/files/slave_scripts/upstream_translation_horizon.sh +++ b/modules/jenkins/files/slave_scripts/upstream_translation_horizon.sh @@ -26,8 +26,10 @@ fi git config user.name "OpenStack Jenkins" git config user.email "jenkins@openstack.org" -# initialize transifex client -tx init --host=https://www.transifex.com +# Initialize the transifex client, if there's no .tx directory +if [ ! -d .tx ] ; then + tx init --host=https://www.transifex.com +fi # Horizon JavaScript Translations tx set --auto-local -r ${PROJECT}.${PROJECT}-js-translations \ "${PROJECT}/locale//LC_MESSAGES/djangojs.po" --source-lang en \