diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-09-20 22:48:13 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-09-20 22:48:13 -0300 |
commit | 24ce781bba623684f244e78adef79c812c080b4a (patch) | |
tree | 2114913e213789c35b93d3b2e90f0169b6f2c29c | |
parent | b2a9fa913cea947142e9ae8e722a193b49e913c1 (diff) | |
download | luarocks-24ce781bba623684f244e78adef79c812c080b4a.tar.gz luarocks-24ce781bba623684f244e78adef79c812c080b4a.tar.bz2 luarocks-24ce781bba623684f244e78adef79c812c080b4a.zip |
Fix unpacking of rockspecs
Diffstat (limited to '')
-rw-r--r-- | src/luarocks/unpack.lua | 3 |
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 |
45 | end | 46 | end |
46 | 47 | ||