From 61200f497df54f3662024b887850e3aa301d7c46 Mon Sep 17 00:00:00 2001
From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Date: Thu, 13 Jul 2017 14:39:07 -0400
Subject: [PATCH] fix update-translations.py script

Fix little error in condition check of lupdate execution.

Change-Id: I93b3804b6e927dca2165e4575eddfe614d64c9ac
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
---
 update-translations.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/update-translations.py b/update-translations.py
index 3e2931b..0264115 100755
--- a/update-translations.py
+++ b/update-translations.py
@@ -27,9 +27,8 @@ import shutil
 print("== Updating from sources")
 if os.system("lupdate RingWinClient.pro -no-obsolete"):
     print("trying with 'lupdate-qt5'")
-    os.system("lupdate-qt5 RingWinClient.pro -no-obsolete")
-else:
-    raise RuntimeError("unable to find any suitable lupdate Qt tool on this system. Stopping")
+    if os.system("lupdate-qt5 RingWinClient.pro -no-obsolete"):
+        raise RuntimeError("unable to find any suitable lupdate Qt tool on this system. Stopping")
 
 print("== Pushing sources")
 os.system("tx push -s")
-- 
GitLab