[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [lorax] Raise an exception if isohybrid cannot be run on x86



On Wed, Aug 24, 2011 at 08:39:44AM +0200, Martin Gracik wrote:
> ---
>  src/pylorax/images.py |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/src/pylorax/images.py b/src/pylorax/images.py
> index 7aae553..75d38e0 100644
> --- a/src/pylorax/images.py
> +++ b/src/pylorax/images.py
> @@ -569,11 +569,14 @@ class X86(object):
>                               stdout=subprocess.PIPE)
>          p.wait()
>  
> -        if os.path.exists(ISOHYBRID):
> +        try:
>              # run isohybrid
>              cmd = [ISOHYBRID, boot_fpath]
>              p = subprocess.Popen(cmd, stdin=subprocess.PIPE,
>                                   stdout=subprocess.PIPE)
> +        except OSError as e:
> +            raise Exception("cannot run isohybrid: %s" % e)
> +        else:
>              p.wait()
>  
>          # run implantisomd5
> -- 
> 1.7.3.2

Good idea.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)

Attachment: pgpqn860VBIBj.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]