On Mon, 2011-09-05 at 13:37 +0200, Zdeněk Pavlas wrote:
> ---
> cli.py | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/cli.py b/cli.py
> index 483108c..4a3d0c9 100755
> --- a/cli.py
> +++ b/cli.py
> @@ -269,6 +269,10 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
> except yum.Errors.ConfigError, e:
> self.logger.critical(_('Config Error: %s'), e)
> sys.exit(1)
> + except IOError, e:
> + e = '%s: %s' % (to_unicode(e.args[1]), repr(e.filename))
> + self.logger.critical(_('Config Error: %s'), e)
Hmm, I'm not sure this is a "Config Error" (I read that as "you have an
error in your configuration files"), but rather a "System Error" or
whatever else we might call it when yum can't read a file (which should
be readable normally). Otherwise this looks good to me.
Nils
--
Nils Philippsen "Those who would give up Essential Liberty to purchase
Red Hat a little Temporary Safety, deserve neither Liberty
[email protected] nor Safety." -- Benjamin Franklin, 1759
PGP fingerprint: C4A8 9474 5C4C ADE3 2B8F 656D 47D8 9B65 6951 3011
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel