[Yum-devel] [PATCH] Workaround slight rpm bindings API change, BZ 552178

James Antill james at and.org
Wed Jan 6 07:17:47 UTC 2010


---
 yum/__init__.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/yum/__init__.py b/yum/__init__.py
index c1f40c4..4d76267 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -4170,7 +4170,10 @@ class YumBase(depsolve.Depsolve):
         self.populateTs(test=1)
         self.ts.check()
         for prob in self.ts.problems():
-            results.append(prob)
+            #  Newer rpm (4.8.0+) has problem objects, older have just strings.
+            #  Should probably move to using the new objects, when we can. For
+            # now just be compatible.
+            results.append(to_str(prob))
 
         self.dsCallback = dscb
         return results
-- 
1.6.5.2



More information about the Yum-devel mailing list