aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-09-20 22:48:13 -0300
committerHisham Muhammad <hisham@gobolinux.org>2013-09-20 22:48:13 -0300
commit24ce781bba623684f244e78adef79c812c080b4a (patch)
tree2114913e213789c35b93d3b2e90f0169b6f2c29c
parentb2a9fa913cea947142e9ae8e722a193b49e913c1 (diff)
downloadluarocks-24ce781bba623684f244e78adef79c812c080b4a.tar.gz
luarocks-24ce781bba623684f244e78adef79c812c080b4a.tar.bz2
luarocks-24ce781bba623684f244e78adef79c812c080b4a.zip
Fix unpacking of rockspecs
Diffstat (limited to '')
-rw-r--r--src/luarocks/unpack.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/luarocks/unpack.lua b/src/luarocks/unpack.lua
index 2e6166ca..70c116fd 100644
--- a/src/luarocks/unpack.lua
+++ b/src/luarocks/unpack.lua
@@ -37,10 +37,11 @@ local function unpack_rockspec(rockspec_file, dir_name)
37 if not ok then 37 if not ok then
38 return nil, sources_dir 38 return nil, sources_dir
39 end 39 end
40 ok, err = fs.change_dir(dir_name) 40 ok, err = fs.change_dir(sources_dir)
41 if not ok then return nil, err end 41 if not ok then return nil, err end
42 build.apply_patches(rockspec) 42 build.apply_patches(rockspec)
43 fs.pop_dir() 43 fs.pop_dir()
44 fs.pop_dir()
44 return rockspec 45 return rockspec
45end 46end
46 47