aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/core/vers.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/luarocks/core/vers.lua b/src/luarocks/core/vers.lua
index c8c66a1f..e680f70b 100644
--- a/src/luarocks/core/vers.lua
+++ b/src/luarocks/core/vers.lua
@@ -56,6 +56,12 @@ local version_mt = {
56 end 56 end
57 return false 57 return false
58 end, 58 end,
59 -- @param v1 table: version table to compare.
60 -- @param v2 table: version table to compare.
61 -- @return boolean: true if v1 is considered lower than or equal to v2.
62 __le = function(v1, v2)
63 return not (v2 < v1)
64 end,
59 --- Return version as a string. 65 --- Return version as a string.
60 -- @param v The version table. 66 -- @param v The version table.
61 -- @return The string representation. 67 -- @return The string representation.