[Yum-devel] [PATCH] If the rpm trans. test check fails due to rpmlib, tell the user.

Seth Vidal skvidal at fedoraproject.org
Tue Aug 4 18:46:38 UTC 2009



On Tue, 4 Aug 2009, James Antill wrote:

> We have had significant rpmlib problems, with SHA256 and Xz etc. so we
> might as well look for it and tell the user not to put stuff in yum's
> Bug DB.

go ahead and commit this - I had something similar in mind to make this 
set of bug reports go away.

-sv


> ---
> yum/__init__.py |    9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/yum/__init__.py b/yum/__init__.py
> index 55ec450..9deed31 100644
> --- a/yum/__init__.py
> +++ b/yum/__init__.py
> @@ -3821,6 +3821,15 @@ class YumBase(depsolve.Depsolve):
>                  _('Running rpm_check_debug'))
>             msgs = self._run_rpm_check_debug()
>             if msgs:
> +                rpmlib_only = True
> +                for msg in msgs:
> +                    if msg.startswith('rpmlib('):
> +                        continue
> +                    rpmlib_only = False
> +                if rpmlib_only:
> +                    retmsgs = [_("ERROR You need to update rpm to handle:")]
> +                    retmsgs.extend(msgs)
> +                    raise Errors.YumRPMCheckError, retmsgs
>                 retmsgs = [_('ERROR with rpm_check_debug vs depsolve:')]
>                 retmsgs.extend(msgs)
>                 retmsgs.append(_('Please report this error at %s')
> -- 
> 1.6.2.5
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel
>


More information about the Yum-devel mailing list