diff options
-rw-r--r-- | src/luarocks/build.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/luarocks/build.lua b/src/luarocks/build.lua index 77dd1dad..dec61999 100644 --- a/src/luarocks/build.lua +++ b/src/luarocks/build.lua | |||
@@ -291,6 +291,14 @@ local function do_build(name, version) | |||
291 | end | 291 | end |
292 | 292 | ||
293 | local function pack_binary_rock(name, version) | 293 | local function pack_binary_rock(name, version) |
294 | |||
295 | -- The --pack-binary-rock option for "luarocks build" basically performs | ||
296 | -- "luarocks build" on a temporary tree and then "luarocks pack". The | ||
297 | -- alternative would require refactoring parts of luarocks.build and | ||
298 | -- luarocks.pack, which would save a few file operations: the idea would be | ||
299 | -- to shave off the final deploy steps from the build phase and the initial | ||
300 | -- collect steps from the pack phase. | ||
301 | |||
294 | local temp_dir = fs.make_temp_dir("luarocks-build-pack-"..dir.base_name(name)) | 302 | local temp_dir = fs.make_temp_dir("luarocks-build-pack-"..dir.base_name(name)) |
295 | if not temp_dir then | 303 | if not temp_dir then |
296 | return nil, "Failed creating temporary directory." | 304 | return nil, "Failed creating temporary directory." |