projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff37c78
)
Fix reversed version comparison
author
Jamie Cameron
<jcameron@webmin.com>
Wed, 12 Jan 2011 23:15:52 +0000
(15:15 -0800)
committer
Jamie Cameron
<jcameron@webmin.com>
Wed, 12 Jan 2011 23:15:52 +0000
(15:15 -0800)
software/software-lib.pl
patch
|
blob
|
history
diff --git
a/software/software-lib.pl
b/software/software-lib.pl
index
949712a
..
e340086
100755
(executable)
--- a/
software/software-lib.pl
+++ b/
software/software-lib.pl
@@
-235,7
+235,7
@@
for(my $i=0; $i<@sp1 || $i<@sp2; $i++) {
# Numeric compared to non-numeric - numeric is always higher
$comp = 1;
}
- elsif ($v1
=~ /^\d+$/ && $v2 !
~ /^\d+$/) {
+ elsif ($v1
!~ /^\d+$/ && $v2 =
~ /^\d+$/) {
# Non-numeric compared to numeric - numeric is always higher
$comp = -1;
}