From 62f6937512a25f2e4dbe9ee66271680d2f776085 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Thu, 9 Jun 2011 10:43:29 +0000 Subject: fix version comparison when we ask for "alpha > 0.1.0" and the version of alpha is 0.1.0alpha2. doing "alpha > 0.1.0alpha2" doesn't work yet. --- usr.bin/pkg-config/pkg-config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/pkg-config') diff --git a/usr.bin/pkg-config/pkg-config b/usr.bin/pkg-config/pkg-config index c2b721d9756..adf03221c89 100644 --- a/usr.bin/pkg-config/pkg-config +++ b/usr.bin/pkg-config/pkg-config @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $OpenBSD: pkg-config,v 1.54 2011/06/07 18:42:30 jasper Exp $ +# $OpenBSD: pkg-config,v 1.55 2011/06/09 10:43:28 jasper Exp $ # $CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $ # Copyright (c) 2006 Chris Kuethe @@ -628,12 +628,12 @@ sub compare # e.g.: 1.02 > 1.02b1 if (@suffix_a) { # a is older print STDERR "$full_a (installed) < $full_b (wanted)\n" if $D; - return -1; + return 1; } if (@suffix_b) { # b is older print STDERR "$full_a (installed) > $full_b (wanted)\n" if $D; - return 1; + return -1; } } -- cgit v1.2.3