Red Hat Bugzilla – Bug 472389
yum changelog doesn't exit properly when dateutil module isn't present
Last modified: 2009-01-20 17:05:49 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"
...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:
Author: James Antill <email@example.com>
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
@@ -22,6 +22,7 @@
from rpmUtils.miscutils import splitFilename
from yum.plugins import TYPE_INTERACTIVE
+from yum.plugins import PluginYumExit
from yum import logginglevels
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.
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.