Raise an exception if isohybrid cannot be run on x86

This commit is contained in:
Martin Gracik 2011-08-24 08:38:59 +02:00
parent faca7dd166
commit 33d0a7d9fc

View File

@ -569,11 +569,14 @@ class X86(object):
stdout=subprocess.PIPE) stdout=subprocess.PIPE)
p.wait() p.wait()
if os.path.exists(ISOHYBRID): try:
# run isohybrid # run isohybrid
cmd = [ISOHYBRID, boot_fpath] cmd = [ISOHYBRID, boot_fpath]
p = subprocess.Popen(cmd, stdin=subprocess.PIPE, p = subprocess.Popen(cmd, stdin=subprocess.PIPE,
stdout=subprocess.PIPE) stdout=subprocess.PIPE)
except OSError as e:
raise Exception("cannot run isohybrid: %s" % e)
else:
p.wait() p.wait()
# run implantisomd5 # run implantisomd5