Xenial tweaks

This commit is contained in:
Ian Gulliver
2016-08-04 04:25:02 +00:00
parent 95315dfa77
commit 5defa222d6
2 changed files with 4 additions and 1 deletions

View File

@@ -20,8 +20,10 @@ class IconModule(object):
def Exec(self, *args, **kwargs): def Exec(self, *args, **kwargs):
print('+', args) print('+', args)
env = kwargs.pop('env', os.environ.copy())
env['LC_ALL'] = 'C'
try: try:
subprocess.check_call(args, **kwargs) subprocess.check_call(args, env=env, **kwargs)
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
print('ERROR:', e) print('ERROR:', e)
raise SubprocessFailure(e) raise SubprocessFailure(e)

View File

@@ -174,6 +174,7 @@ class INotifyHandler(pyinotify.ProcessEvent):
if event.name != 'manifest.json': if event.name != 'manifest.json':
return return
image_type = os.path.basename(event.path) image_type = os.path.basename(event.path)
print('New manifest for:', image_type)
self._websockets.Broadcast(self._websockets, { self._websockets.Broadcast(self._websockets, {
'type': 'new_manifest', 'type': 'new_manifest',
'data': { 'data': {