[Yum-devel] [PATCH] Handle OS errors during setup. BZ 884726

James Antill james at fedoraproject.org
Mon Dec 10 17:46:01 UTC 2012


On Fri, 2012-12-07 at 10:58 +0100, Zdeněk Pavlas wrote:
> ---
>  yummain.py |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/yummain.py b/yummain.py
> index 648cf86..a11f26e 100755
> --- a/yummain.py
> +++ b/yummain.py
> @@ -117,6 +117,8 @@ def main(args):
>          return exPluginExit(e)
>      except Errors.YumBaseError, e:
>          return exFatal(e)
> +    except (OSError, IOError), e:
> +        return exIOError(e)

 OSError is due to SELinux giving EPERM ... but we don't catch that
anywhere else (just IOError). I guess we should?

 ACK.



More information about the Yum-devel mailing list