FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 06-28-2011, 04:35 PM
"Brian C. Lane"
 
Default yum: handle PackageSackErrors separately in AnacondaYum._run.

On Tue, Jun 28, 2011 at 05:21:48PM +0200, Ales Kozumplik wrote:
> Otherwise we assume the exception has more fields than it really does.
>
> Resolves: rhbz#717307
> ---
> pyanaconda/yuminstall.py | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
> index e3afdff..a1a44dc 100644
> --- a/pyanaconda/yuminstall.py
> +++ b/pyanaconda/yuminstall.py
> @@ -1032,6 +1032,14 @@ class AnacondaYum(yum.YumBase):
>
> try:
> self.runTransaction(cb=cb)
> + except PackageSackError as e:
> + log.error("AnacondaYum._run: PackageSackError: %s" % e)
> + msg = _("There was an error running your transaction for "
> + "the following reason: %s.
") % str(e)
> + intf.messageWindow(_("Error Running Transaction"),
> + msg, type="custom",
> + custom_icon="error", custom_buttons=[_("_Exit installer")])
> + sys.exit(1)
> except YumBaseError as probs:
> # FIXME: we need to actually look at these problems...
> probTypes = { rpm.RPMPROB_NEW_FILE_CONFLICT : _('file conflicts'),
> --
> 1.7.5.4

Ack

--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 02:41 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org