summaryrefslogtreecommitdiff
path: root/usr.bin/pkg-config
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-06-09 10:43:29 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-06-09 10:43:29 +0000
commit62f6937512a25f2e4dbe9ee66271680d2f776085 (patch)
treeff121081307237f9a6d29cc45594326b7aeee4e0 /usr.bin/pkg-config
parentb52737940edebc771037cdd91707518c9d55e104 (diff)
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.
Diffstat (limited to 'usr.bin/pkg-config')
-rw-r--r--usr.bin/pkg-config/pkg-config6
1 files changed, 3 insertions, 3 deletions
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 <ckuethe@openbsd.org>
@@ -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;
}
}