Bug 472389 - yum changelog doesn't exit properly when dateutil module isn't present
yum changelog doesn't exit properly when dateutil module isn't present
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum-utils (Show other bugs)
All Linux
medium Severity medium
: rc
: ---
Assigned To: James Antill
James Antill
Depends On:
  Show dependency treegraph
Reported: 2008-11-20 11:41 EST by James Antill
Modified: 2009-01-20 17:05 EST (History)
3 users (show)

See Also:
Fixed In Version: yum-utils-1.1.16-13.el5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-01-20 17:05:49 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description James Antill 2008-11-20 11:41:15 EST
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@and.org>
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 11:43:01 EST
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 17:05:49 EST
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.


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