diff --git a/update-translations.py b/update-translations.py index 3e2931b5de5233b23515aa04e1056d64eb05fd02..0264115e4eeb6e8c744b82c7c5a914e241373afa 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")