diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/unpack.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/luarocks/unpack.lua b/src/luarocks/unpack.lua index 9204e265..a889bac5 100644 --- a/src/luarocks/unpack.lua +++ b/src/luarocks/unpack.lua | |||
@@ -43,9 +43,10 @@ local function unpack_rockspec(rockspec_file, dir_name) | |||
43 | end | 43 | end |
44 | ok, err = fs.change_dir(sources_dir) | 44 | ok, err = fs.change_dir(sources_dir) |
45 | if not ok then return nil, err end | 45 | if not ok then return nil, err end |
46 | build.apply_patches(rockspec) | 46 | ok, err = build.apply_patches(rockspec) |
47 | fs.pop_dir() | 47 | fs.pop_dir() |
48 | fs.pop_dir() | 48 | fs.pop_dir() |
49 | if not ok then return nil, err end | ||
49 | return rockspec | 50 | return rockspec |
50 | end | 51 | end |
51 | 52 | ||
@@ -79,8 +80,9 @@ local function unpack_rock(rock_file, dir_name, kind) | |||
79 | end | 80 | end |
80 | ok, err = fs.change_dir(rockspec.source.dir) | 81 | ok, err = fs.change_dir(rockspec.source.dir) |
81 | if not ok then return nil, err end | 82 | if not ok then return nil, err end |
82 | build.apply_patches(rockspec) | 83 | ok, err = build.apply_patches(rockspec) |
83 | fs.pop_dir() | 84 | fs.pop_dir() |
85 | if not ok then return nil, err end | ||
84 | end | 86 | end |
85 | end | 87 | end |
86 | return rockspec | 88 | return rockspec |