Commit 4dc094ed authored by Michal Čihař's avatar Michal Čihař

Do not show output of executed commands

parent 4a55922a
......@@ -213,7 +213,11 @@ def ssh(request):
'''
# Check whether we can generate SSH key
try:
ret = subprocess.check_call(['which', 'ssh-keygen'])
ret = subprocess.check_call(
['which', 'ssh-keygen'],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
)
can_generate = (ret == 0 and not os.path.exists(RSA_KEY_FILE))
except:
can_generate = False
......
......@@ -587,7 +587,11 @@ class PoFormat(FileFormat):
Checks whether we can create new language file.
'''
try:
ret = subprocess.check_call(['msginit', '--help'])
ret = subprocess.check_call(
['msginit', '--help'],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
)
return ret == 0
except:
return False
......@@ -608,13 +612,17 @@ class PoFormat(FileFormat):
'''
Adds new language file.
'''
subprocess.check_call([
'msginit',
'-i', base,
'-o', filename,
'--no-translator',
'-l', code
])
subprocess.check_call(
[
'msginit',
'-i', base,
'-o', filename,
'--no-translator',
'-l', code
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
)
register_fileformat(PoFormat)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment