mirror of
https://github.com/torproject/lego.git
synced 2024-10-06 23:33:25 +00:00
Patch lego to solve build issues
This commit is contained in:
parent
637cc6c7d5
commit
38d2ab26f4
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user