diff options
-rw-r--r-- | src/luarocks/pack.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/pack.lua b/src/luarocks/pack.lua index 800a855e..aaa3d37e 100644 --- a/src/luarocks/pack.lua +++ b/src/luarocks/pack.lua | |||
@@ -64,7 +64,7 @@ local function copy_back_files(name, version, file_tree, deploy_dir, pack_dir) | |||
64 | if type(sub) == "table" then | 64 | if type(sub) == "table" then |
65 | local ok, err = copy_back_files(name, version, sub, source, target) | 65 | local ok, err = copy_back_files(name, version, sub, source, target) |
66 | else | 66 | else |
67 | local versioned = path.versioned_name(source, name, version) | 67 | local versioned = path.versioned_name(source, deploy_dir, name, version) |
68 | if fs.exists(versioned) then | 68 | if fs.exists(versioned) then |
69 | fs.copy(versioned, target) | 69 | fs.copy(versioned, target) |
70 | else | 70 | else |