diff options
author | FYP <its.fyp@gmail.com> | 2018-10-17 11:39:20 +0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-10-17 13:39:50 -0300 |
commit | 88e97b4579a6c30357ddbde81af213350181c288 (patch) | |
tree | 8bf42e06699184c72fa04c1a0511cbd71b08e9e9 /src | |
parent | 047c876a9cde2d13859e451769cbb3138f9811b8 (diff) | |
download | luarocks-88e97b4579a6c30357ddbde81af213350181c288.tar.gz luarocks-88e97b4579a6c30357ddbde81af213350181c288.tar.bz2 luarocks-88e97b4579a6c30357ddbde81af213350181c288.zip |
pack: fix packing installed rock
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/pack.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/pack.lua b/src/luarocks/pack.lua index 0c71aa76..3955af3d 100644 --- a/src/luarocks/pack.lua +++ b/src/luarocks/pack.lua | |||
@@ -102,12 +102,12 @@ function pack.pack_installed_rock(query, tree) | |||
102 | 102 | ||
103 | local is_binary = false | 103 | local is_binary = false |
104 | if rock_manifest.lib then | 104 | if rock_manifest.lib then |
105 | local ok, err = copy_back_files(name, version, rock_manifest.lib, path.deploy_lib_dir(root), dir.path(temp_dir, "lib"), "exec") | 105 | local ok, err = copy_back_files(name, version, rock_manifest.lib, path.deploy_lib_dir(repo), dir.path(temp_dir, "lib"), "exec") |
106 | if not ok then return nil, "Failed copying back files: " .. err end | 106 | if not ok then return nil, "Failed copying back files: " .. err end |
107 | is_binary = true | 107 | is_binary = true |
108 | end | 108 | end |
109 | if rock_manifest.lua then | 109 | if rock_manifest.lua then |
110 | local ok, err = copy_back_files(name, version, rock_manifest.lua, path.deploy_lua_dir(root), dir.path(temp_dir, "lua"), "read") | 110 | local ok, err = copy_back_files(name, version, rock_manifest.lua, path.deploy_lua_dir(repo), dir.path(temp_dir, "lua"), "read") |
111 | if not ok then return nil, "Failed copying back files: " .. err end | 111 | if not ok then return nil, "Failed copying back files: " .. err end |
112 | end | 112 | end |
113 | 113 | ||