diff options
Diffstat (limited to 'src')
| -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 |
