diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-06-11 10:37:40 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-06-11 10:37:40 +0300 |
commit | cb55ab4c3584422612e8586a9398dc5f9d6955ea (patch) | |
tree | 583a2b9153a69b61dda472eb916152790155bf06 /python | |
parent | 07b45099bbaf51d5a92516be06245be7e44972c9 (diff) | |
download | librpm-tizen-cb55ab4c3584422612e8586a9398dc5f9d6955ea.tar.gz librpm-tizen-cb55ab4c3584422612e8586a9398dc5f9d6955ea.tar.bz2 librpm-tizen-cb55ab4c3584422612e8586a9398dc5f9d6955ea.zip |
Treat null epoch equal to zero epoch in python labelCompare (rhbz#227860).
Patch from JBJ.
Diffstat (limited to 'python')
-rw-r--r-- | python/header-py.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/header-py.c b/python/header-py.c index 24c485b91..67d34ebeb 100644 --- a/python/header-py.c +++ b/python/header-py.c @@ -1065,6 +1065,9 @@ PyObject * labelCompare (PyObject * self, PyObject * args) &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); |