diff options
author | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-10-22 16:13:12 +0000 |
---|---|---|
committer | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-10-22 16:13:12 +0000 |
commit | 5e8d8da655a11308796d92531eceb6745694cf40 (patch) | |
tree | 08b42c8d9394d7078c50bab0cd269d6d982d48dc /src | |
parent | a2784867f6629ca24913eba779df125f588d90ac (diff) | |
download | luarocks-5e8d8da655a11308796d92531eceb6745694cf40.tar.gz luarocks-5e8d8da655a11308796d92531eceb6745694cf40.tar.bz2 luarocks-5e8d8da655a11308796d92531eceb6745694cf40.zip |
fix packing of files, as reported by Fabio Mascarenhas
git-svn-id: http://luarocks.org/svn/luarocks/trunk@105 9ca3f7c1-7366-0410-b1a3-b5c78f85698c
Diffstat (limited to 'src')
-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 |