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): ...@@ -213,7 +213,11 @@ def ssh(request):
''' '''
# Check whether we can generate SSH key # Check whether we can generate SSH key
try: 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)) can_generate = (ret == 0 and not os.path.exists(RSA_KEY_FILE))
except: except:
can_generate = False can_generate = False
......
...@@ -587,7 +587,11 @@ class PoFormat(FileFormat): ...@@ -587,7 +587,11 @@ class PoFormat(FileFormat):
Checks whether we can create new language file. Checks whether we can create new language file.
''' '''
try: try:
ret = subprocess.check_call(['msginit', '--help']) ret = subprocess.check_call(
['msginit', '--help'],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
)
return ret == 0 return ret == 0
except: except:
return False return False
...@@ -608,13 +612,17 @@ class PoFormat(FileFormat): ...@@ -608,13 +612,17 @@ class PoFormat(FileFormat):
''' '''
Adds new language file. Adds new language file.
''' '''
subprocess.check_call([ subprocess.check_call(
'msginit', [
'-i', base, 'msginit',
'-o', filename, '-i', base,
'--no-translator', '-o', filename,
'-l', code '--no-translator',
]) '-l', code
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
)
register_fileformat(PoFormat) 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