Download:
child 179:572fc0f25c6b
parent 177:c62bd675b409
178:290623d1275c
Anton Shestakov <av6@dwimlabs.net>, Sun, 24 Jul 2016 09:08:17 +0800
checker: set some essential environment variables early

1 файлов изменено, 2 вставок(+), 3 удалений(-) [+]
checker.py file | annotate | diff | comparison | revisions
--- a/checker.py Fri Jul 22 22:03:25 2016 +0800
+++ b/checker.py Sun Jul 24 09:08:17 2016 +0800
@@ -148,9 +148,7 @@
print('# C&O task: clone')
print('# C&O project URL: {}'.format(config['url']))
- if config['scm'] == 'git':
- os.environ['LC_ALL'] = 'en_US.UTF-8'
- elif config['scm'] == 'hg':
+ if config['scm'] == 'hg':
os.environ['HGPLAIN'] = '1'
if config['scm'] == 'git':
@@ -248,6 +246,7 @@
def wrapper(config, args):
print('# C&O job started: {}'.format(timestamp()))
+ os.environ.update({'LC_ALL': 'en_US.UTF-8'})
tmp = mkdtemp(prefix='candolint.')
if not execute(tmp, config, args):