Bug 472389 - yum changelog doesn't exit properly when dateutil module isn't present
Summary: yum changelog doesn't exit properly when dateutil module isn't present
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum-utils
Version: 5.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: James Antill
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-20 16:41 UTC by James Antill
Modified: 2009-01-20 22:05 UTC (History)
3 users (show)

Fixed In Version: yum-utils-1.1.16-13.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-20 22:05:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0227 0 normal SHIPPED_LIVE yum-utils bug fix update 2009-01-20 16:06:29 UTC

Description James Antill 2008-11-20 16:41:15 UTC
Description of problem:
 If the user requests the dateutil support in yum-changelog plugin, and dateutil isn't installed (only in EPEL) we do:

                if dateutil_parser is None:
                    msg = "Dateutil module not available, so can't parse dates"
                    raise PluginYumExit(msg)

...except PluginYumExit wasn't imported, so this causes a traceback instead of a nice msg.

Version-Release number of selected component (if applicable):
yum-changelog.noarch                   1.1.16-11.el5                   installed

...upstream fix is:

commit 488aeafac56f13b93b3758c264910bd2216957be
Author: James Antill <james>
Date:   Thu Nov 20 11:36:19 2008 -0500

    Import PluginYumExit so we can use it

diff --git a/plugins/changelog/changelog.py b/plugins/changelog/changelog.py
index 5f72b7b..2be0477 100644
--- a/plugins/changelog/changelog.py
+++ b/plugins/changelog/changelog.py
@@ -22,6 +22,7 @@
 import time
 from rpmUtils.miscutils import splitFilename
 from yum.plugins import TYPE_INTERACTIVE
+from yum.plugins import PluginYumExit
 
 from yum import logginglevels
 import logging

Comment 1 James Antill 2008-11-20 16:43:01 UTC
Not sure if this is worth it, at this point ... but it's a simple fix, so I figured I'd add it and see.

Comment 8 errata-xmlrpc 2009-01-20 22:05:49 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0227.html


Note You need to log in before you can comment on or make changes to this bug.