https://bugzilla.novell.com/show_bug.cgi?id=331818#c5
Christoph Thiel changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cthiel@novell.com
AssignedTo|cthiel@novell.com |mls@novell.com
--- Comment #5 from Christoph Thiel 2007-10-09 11:33:34 MST ---
This needs to be fixed in rpm and has already been addressed upstream.
cthiel@zion:~/devel/rpm-4.4.x/python> hg history -r 6015 -p
changeset: 6015:4c9ed91d7017
user: Panu Matilainen
date: Mon Jun 11 10:37:40 2007 +0300
summary: Treat null epoch equal to zero epoch in python labelCompare
(rhbz#227860).
diff -r 95e8ff3b9140 -r 4c9ed91d7017 python/header-py.c
--- a/python/header-py.c Mon Jun 11 10:30:29 2007 +0300
+++ b/python/header-py.c Mon Jun 11 10:37:40 2007 +0300
@@ -1065,6 +1065,9 @@ PyObject * labelCompare (PyObject * self
&e1, &v1, &r1, &e2, &v2, &r2))
return NULL;
+ if (e1 == NULL) e1 = "0";
+ if (e2 == NULL) e2 = "0";
+
rc = compare_values(e1, e2);
if (!rc) {
rc = compare_values(v1, v2);
cthiel@zion:~/devel/rpm-4.4.x/python>
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.