non-numeric version number. Patch sets checksetup.pl to use a string
compare instead of a numeric one.
Patch by Dave Miller. r1=Bradley Baetz and r2=Gerv
$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 {