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

James Antill james at and.org
Tue Aug 4 18:43:55 UTC 2009


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.
---
 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



More information about the Yum-devel mailing list