diff options
author | V1K1NGbg <victor@ilchev.com> | 2024-07-28 00:19:27 +0300 |
---|---|---|
committer | V1K1NGbg <victor@ilchev.com> | 2024-08-05 20:49:17 +0300 |
commit | 6ebbf9abeccc119078eadf8bf0a9d5341a7d327b (patch) | |
tree | 1487f82c2f6f550d2144b28de03e89c9e2f4ee3f | |
parent | 00cb13ccd83adad7d8816ada99f6aae4a47d849d (diff) | |
download | luarocks-6ebbf9abeccc119078eadf8bf0a9d5341a7d327b.tar.gz luarocks-6ebbf9abeccc119078eadf8bf0a9d5341a7d327b.tar.bz2 luarocks-6ebbf9abeccc119078eadf8bf0a9d5341a7d327b.zip |
fix attempt 1
-rw-r--r-- | src/luarocks/util.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua index 59aff9a7..cca7aa85 100644 --- a/src/luarocks/util.lua +++ b/src/luarocks/util.lua | |||
@@ -63,7 +63,9 @@ local scheduled_functions = {} | |||
63 | 63 | ||
64 | 64 | ||
65 | function util.schedule_function(f, ...) | 65 | function util.schedule_function(f, ...) |
66 | local item = { fn = f, args = table.pack(...) } | 66 | local pack = table.pack or function(...) return { n = select("#", ...), ... } end --TEST |
67 | |||
68 | local item = { fn = f, args = pack(...) } | ||
67 | table.insert(scheduled_functions, item) | 69 | table.insert(scheduled_functions, item) |
68 | return item | 70 | return item |
69 | end | 71 | end |