aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV1K1NGbg <victor@ilchev.com>2024-07-29 20:01:35 +0300
committerV1K1NGbg <victor@ilchev.com>2024-08-05 20:51:31 +0300
commitc9afbc85a5c6ed7e5979a5f12950bfe06c995468 (patch)
treea28007dfed0a010a7f5bfde2fb862efc3a43b47e
parentb2c2ed5ea350bdbb112adf6c5abd70afecdec028 (diff)
downloadluarocks-c9afbc85a5c6ed7e5979a5f12950bfe06c995468.tar.gz
luarocks-c9afbc85a5c6ed7e5979a5f12950bfe06c995468.tar.bz2
luarocks-c9afbc85a5c6ed7e5979a5f12950bfe06c995468.zip
add compat53 dependency
-rw-r--r--.github/workflows/test.yml1
-rw-r--r--src/luarocks/util.lua4
2 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index d856e77f..9082c431 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -50,6 +50,7 @@ jobs:
50 luarocks install busted 50 luarocks install busted
51 luarocks install cluacov 51 luarocks install cluacov
52 luarocks install busted-htest 52 luarocks install busted-htest
53 luarocks install compat53
53 54
54 - name: Unit Test 55 - name: Unit Test
55 run: | 56 run: |
diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua
index 04865715..145993ea 100644
--- a/src/luarocks/util.lua
+++ b/src/luarocks/util.lua
@@ -63,9 +63,9 @@ local scheduled_functions = {}
63 63
64 64
65function util.schedule_function(f, ...) 65function util.schedule_function(f, ...)
66 local pack = table.pack or function(...) return { n = select("#", ...), ... } end --! FOR TESTS TO PASS 66 -- local pack = table.pack or function(...) return { n = select("#", ...), ... } end --! FOR TESTS TO PASS
67 67
68 local item = { fn = f, args = pack(...) } 68 local item = { fn = f, args = table.pack(...) }
69 table.insert(scheduled_functions, item) 69 table.insert(scheduled_functions, item)
70 return item 70 return item
71end 71end