Re: [f16-branch] nfsiso: handle mismatching .iso architecture gracefully.

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

 



> @@ -162,30 +164,32 @@ def mountDirectory(methodstr, messageWindow):
>                  continue
>  
>  def mountImage(isodir, tree, messageWindow):
> +    def complain():
> +        ans = messageWindow(_("Missing ISO 9660 Image"),
> +                            _("The installer has tried to mount the "
> +                              "installation image, but cannot find it on "
> +                              "the hard drive.\n\n"
> +                              "Please copy this image to the "
> +                              "drive and click Retry.  Click Exit "
> +                              "to abort the installation."),
> +                              type="custom",
> +                              custom_icon="warning",
> +                              custom_buttons=[_("_Exit"), _("_Retry")])
> +        if ans == 0:
> +            sys.exit(0)
> +
>      if os.path.ismount(tree):
>          raise SystemError, "trying to mount already-mounted iso image!"
> -
> -    image = findFirstIsoImage(isodir, messageWindow)
> -
>      while True:
> +        image = findFirstIsoImage(isodir, messageWindow)
> +        if image is None:
> +            complain()
> +            continue

Looks fine, just please put a newline after this continue and before the
try.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux