[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [lego/master] Patch lego to solve build issues
commit 38d2ab26f41961fbdeab7f40dc2ed73c7ec8074c
Author: Silvia/Hiro <hiro@xxxxxxxxxxxxxx>
Date: Wed Nov 3 00:45:27 2021 +0100
Patch lego to solve build issues
---
packages/i18n/lektor_i18n.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/packages/i18n/lektor_i18n.py b/packages/i18n/lektor_i18n.py
index 1129727..a0ac284 100644
--- a/packages/i18n/lektor_i18n.py
+++ b/packages/i18n/lektor_i18n.py
@@ -133,6 +133,8 @@ class Translations():
def merge_pot(self, from_filenames, to_filename):
msgcat=locate_executable('msgcat')
+ if msgcat is None:
+ msgcat="/usr/bin/msgcat"
cmdline=[msgcat, "--use-first"]
cmdline.extend(from_filenames)
cmdline.extend(("-o", to_filename))
@@ -141,6 +143,8 @@ class Translations():
def parse_templates(self, to_filename):
pybabel=locate_executable('pybabel')
+ if pybabel is None:
+ pybabel="/usr/bin/pybabel"
cmdline=[pybabel, 'extract', '-F', 'babel.cfg', "-o", to_filename, "./"]
reporter.report_debug_info('pybabel cmd line', cmdline)
portable_popen(cmdline).wait()
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits