From 70d901b544eed19440063fa73caed6cb7eb1ba5b Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 14 Sep 2021 20:10:32 +0200 Subject: [PATCH] cirrus ci: push_locale: make sure gettext is installed --- .cirrus.yml | 2 +- contrib/push_locale | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 43567da85..157636c4c 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -73,7 +73,7 @@ task: populate_script: mkdir -p /tmp/electrum-build install_script: - apt-get update - - apt-get -y install libsecp256k1-0 + - apt-get -y install libsecp256k1-0 gettext - pip install -r $ELECTRUM_REQUIREMENTS - pip install requests locale_script: diff --git a/contrib/push_locale b/contrib/push_locale index 01106cf7f..1a3f665a7 100755 --- a/contrib/push_locale +++ b/contrib/push_locale @@ -25,9 +25,9 @@ print("Found {} files to translate".format(len(files.splitlines()))) # Generate fresh translation template if not os.path.exists('electrum/locale'): os.mkdir('electrum/locale') -cmd = 'xgettext -s --from-code UTF-8 --language Python --no-wrap -f app.fil --output=electrum/locale/messages.pot' print('Generate template') -os.system(cmd) +cmd = 'xgettext -s --from-code UTF-8 --language Python --no-wrap -f app.fil --output=electrum/locale/messages.pot' +subprocess.check_output(cmd, shell=True) os.chdir('electrum')