Xenial tweaks
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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': {
|
||||||
|
|||||||
Reference in New Issue
Block a user