From 5bc57f067c9dcc74e583710dedff7182ba1f7d78 Mon Sep 17 00:00:00 2001 From: hisham Date: Sun, 11 Oct 2009 05:46:07 +0000 Subject: fix parameter name git-svn-id: http://luarocks.org/svn/luarocks/trunk@82 9ca3f7c1-7366-0410-b1a3-b5c78f85698c --- src/luarocks/rep.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/luarocks/rep.lua b/src/luarocks/rep.lua index 5eb8860a..2b5b3158 100644 --- a/src/luarocks/rep.lua +++ b/src/luarocks/rep.lua @@ -95,8 +95,8 @@ function package_modules(package, version) local result = {} local rock_manifest = manif.load_rock_manifest(package, version) - store_package_data(result, name, rock_manifest.lib) - store_package_data(result, name, rock_manifest.lua) + store_package_data(result, package, rock_manifest.lib) + store_package_data(result, package, rock_manifest.lua) return result end @@ -211,6 +211,7 @@ function deploy_files(name, version) function(parent_path, parent_module, file) local source = dir.path(source_dir, parent_path, file) local target = dir.path(deploy_dir, parent_path, file) + local ok, err if fs.exists(target) then target, err = resolve_conflict(target, deploy_dir, name, version) if err then return nil, err.." Cannot install new version." end -- cgit v1.2.3-55-g6feb