aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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