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

Brian C. Lane bcl at redhat.com
Thu May 30 19:59:41 UTC 2013


On Thu, May 30, 2013 at 03:56:27PM -0400, Chris Lumens wrote:
> ---
>  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

Ack. For f19 too.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20130530/f0b420a7/attachment.sig>


More information about the anaconda-patches mailing list