[PATCH] Print transaction errors in anaconda-yum so they are displayed in the UI.

Chris Lumens clumens at redhat.com
Thu May 30 19:56:27 UTC 2013


---
 scripts/anaconda-yum | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/anaconda-yum b/scripts/anaconda-yum
index f3b2aea..da40fcc 100755
--- a/scripts/anaconda-yum
+++ b/scripts/anaconda-yum
@@ -141,6 +141,8 @@ def run_yum_transaction(release, arch, yum_conf, install_root, ts_file, script_l
             print("ERROR: PackageSackError: %s" % e)
         except YumRPMTransError as e:
             print("ERROR: YumRPMTransError: %s" % e)
+            for error in e.errors:
+                print("ERROR:    %s" % error[0])
         except YumBaseError as e:
             print("ERROR: YumBaseError: %s" % e)
             for error in e.errors:
-- 
1.8.1.2



More information about the anaconda-patches mailing list