diff options
author | V1K1NGbg <victor@ilchev.com> | 2024-08-12 15:41:25 +0300 |
---|---|---|
committer | V1K1NGbg <victor@ilchev.com> | 2024-08-12 15:41:25 +0300 |
commit | d826c57a42c1977d495112d7ee74b345493eadf6 (patch) | |
tree | 56704b54d60970140facc5c784d93bf812de27a3 | |
parent | 6297dbfd0723ef53717dfa0a9fc9ef12b2e3488c (diff) | |
download | luarocks-d826c57a42c1977d495112d7ee74b345493eadf6.tar.gz luarocks-d826c57a42c1977d495112d7ee74b345493eadf6.tar.bz2 luarocks-d826c57a42c1977d495112d7ee74b345493eadf6.zip |
vers
-rw-r--r-- | src/luarocks/core/vers.lua | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/luarocks/core/vers.lua b/src/luarocks/core/vers.lua index 02e7b1da..e7c4a221 100644 --- a/src/luarocks/core/vers.lua +++ b/src/luarocks/core/vers.lua | |||
@@ -1,20 +1,10 @@ | |||
1 | local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local math = _tl_compat and _tl_compat.math or math; local string = _tl_compat and _tl_compat.string or string; local vers = {Version = {}, Constraints = {}, } | 1 | local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local math = _tl_compat and _tl_compat.math or math; local string = _tl_compat and _tl_compat.string or string; local vers = {} |
2 | |||
3 | |||
4 | |||
5 | |||
6 | |||
7 | |||
8 | |||
9 | |||
10 | |||
11 | |||
12 | 2 | ||
13 | 3 | ||
4 | local util = require("luarocks.core.util") | ||
14 | 5 | ||
15 | 6 | ||
16 | 7 | ||
17 | local util = require("luarocks.core.util") | ||
18 | 8 | ||
19 | 9 | ||
20 | local deltas = { | 10 | local deltas = { |
@@ -27,9 +17,6 @@ local deltas = { | |||
27 | alpha = -1000000, | 17 | alpha = -1000000, |
28 | } | 18 | } |
29 | 19 | ||
30 | |||
31 | |||
32 | |||
33 | local version_mt = { | 20 | local version_mt = { |
34 | 21 | ||
35 | 22 | ||