Start of xenial support

This commit is contained in:
Ian Gulliver
2016-07-18 05:54:04 +00:00
parent a19e99bb33
commit e65035d230
4 changed files with 78 additions and 17 deletions

View File

@@ -6,6 +6,13 @@ import subprocess
import sys
class Error(Exception):
pass
class SubprocessFailure(Error):
pass
class IconModule(object):
def __init__(self, chroot_path):
@@ -13,7 +20,11 @@ class IconModule(object):
def Exec(self, *args, **kwargs):
print('+', args)
subprocess.check_call(args, **kwargs)
try:
subprocess.check_call(args, **kwargs)
except subprocess.CalledProcessError as e:
print('ERROR:', e)
raise SubprocessFailure(e)
def ExecChroot(self, *args, **kwargs):
self.Exec('chroot', self._chroot_path, *args, **kwargs)