Blame SOURCES/BZ-1690376-gracefully-handle-empty-rpm-error-list.patch

5ab7f2
diff --git a/rpmUtils/transaction.py b/rpmUtils/transaction.py
5ab7f2
index 778ed2db..96e0ffc3 100644
5ab7f2
--- a/rpmUtils/transaction.py
5ab7f2
+++ b/rpmUtils/transaction.py
5ab7f2
@@ -119,11 +119,13 @@ class TransactionWrapper:
5ab7f2
         tserrors = self.ts.run(cb.callback, '')
5ab7f2
         self.ts.setFlags(origflags)
5ab7f2
     
5ab7f2
+        if tserrors is None:
5ab7f2
+            return []
5ab7f2
+        if not tserrors:
5ab7f2
+            return ['Unknown error during transaction test in RPM']
5ab7f2
         reserrors = []
5ab7f2
-        if tserrors:
5ab7f2
-            for (descr, (etype, mount, need)) in tserrors:
5ab7f2
-                reserrors.append(descr)
5ab7f2
-        
5ab7f2
+        for (descr, (etype, mount, need)) in tserrors:
5ab7f2
+            reserrors.append(descr)
5ab7f2
         return reserrors
5ab7f2
             
5ab7f2