From b91db5522ba698a9b4743f3049adcae562b5d445 Mon Sep 17 00:00:00 2001 From: jbj Date: Fri, 10 Jan 2003 20:34:26 +0000 Subject: - fix: obscure corner case(s) with rpmvercmp (#50977). CVS patchset: 6004 CVS date: 2003/01/10 20:34:26 --- lib/rpmvercmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/rpmvercmp.c') diff --git a/lib/rpmvercmp.c b/lib/rpmvercmp.c index 5e6a1f985..d5772206b 100644 --- a/lib/rpmvercmp.c +++ b/lib/rpmvercmp.c @@ -67,7 +67,8 @@ int rpmvercmp(const char * a, const char * b) /* take care of the case where the two version segments are */ /* different types: one numeric, the other alpha (i.e. empty) */ if (one == str1) return -1; /* arbitrary */ - if (two == str2) return -1; + /* XXX See patch #60884 (and details) from bugzilla #50977. */ + if (two == str2) return (isnum ? 1 : -1); if (isnum) { /* this used to be done by converting the digit segments */ -- cgit v1.2.3