summaryrefslogtreecommitdiff
path: root/lib/misc.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-03-15 14:14:22 +0000
committerjbj <devnull@localhost>2001-03-15 14:14:22 +0000
commitc19f6836770882a60fb6ceef5f9eaa153515979c (patch)
tree86f995784f342499f8e6d665c4a3e94c7a2a2e05 /lib/misc.c
parentbd80ac253d70e8da19e5634f0ab6f3e8aedf8eb5 (diff)
downloadlibrpm-tizen-c19f6836770882a60fb6ceef5f9eaa153515979c.tar.gz
librpm-tizen-c19f6836770882a60fb6ceef5f9eaa153515979c.tar.bz2
librpm-tizen-c19f6836770882a60fb6ceef5f9eaa153515979c.zip
Fix rpmvercmp for case (should return +1, #21392)
rpmvercmp("1.a", "1.") CVS patchset: 4626 CVS date: 2001/03/15 14:14:22
Diffstat (limited to 'lib/misc.c')
-rw-r--r--lib/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/misc.c b/lib/misc.c
index 65552e6d3..7114529d5 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -142,9 +142,9 @@ int rpmvercmp(const char * a, const char * b)
*str2 = '\0';
/* take care of the case where the two version segments are */
- /* different types: one numeric and one alpha */
+ /* different types: one numeric, the other alpha (i.e. empty) */
if (one == str1) return -1; /* arbitrary */
- if (two == str2) return -1;
+ if (two == str2) return 1;
if (isnum) {
/* this used to be done by converting the digit segments */