projects
/
clawsker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6fe59f
)
Do not fail comparing with empty versions
author
Ricardo Mones
<ricardo@mones.org>
Thu, 19 Jan 2017 09:12:03 +0000
(10:12 +0100)
committer
Ricardo Mones
<ricardo@mones.org>
Thu, 19 Jan 2017 09:12:03 +0000
(10:12 +0100)
This completes commit
1ba1e151247c687b8183e82a4fa8ce667d68fe10
.
clawsker
patch
|
blob
|
history
diff --git
a/clawsker
b/clawsker
index 13a0d993d858d709e456c885758a8d39b6a5a6ee..6594bd73cb16469132eddc7563b8dd4d281aed4c 100755
(executable)
--- a/
clawsker
+++ b/
clawsker
@@
-296,6
+296,8
@@
use constant PAGE_SPC => 5;
sub version_greater_or_equal {
my ($version, $refvers) = @_;
+ return TRUE if (length($version) == 0 and length($refvers) >= 0);
+ return FALSE if (length($version) >= 0 and length($refvers) == 0);
return TRUE if (version->parse($version) >= version->parse($refvers));
return FALSE;
}