summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/checksetup.pl b/checksetup.pl
index e5864921b..d793879ff 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -167,10 +167,10 @@ sub have_vers {
$vnum = ${"${pkg}::VERSION"} || ${"${pkg}::Version"} || 0;
$vnum = -1 if $@;
- if ($vnum < 0) {
+ if ($vnum eq "-1") { # string compare just in case it's non-numeric
$vstr = "not found";
}
- elsif ($vnum > 0) {
+ elsif (vers_cmp($vnum,"0") > -1) {
$vstr = "found v$vnum";
}
else {