diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2013-04-12 15:50:19 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-04-12 15:50:19 -0300 |
| commit | 2b7ffae887b922af8224d1990fb0a72980dd363a (patch) | |
| tree | eb8a1d0a2e756ba1ede3c76f8b492654488935ce /src | |
| parent | ddbea89de90923bed634166f2939648fcdd36c16 (diff) | |
| parent | a4f59f3e458eeaf41a1c7918f2b35233ea8c9444 (diff) | |
| download | luarocks-2b7ffae887b922af8224d1990fb0a72980dd363a.tar.gz luarocks-2b7ffae887b922af8224d1990fb0a72980dd363a.tar.bz2 luarocks-2b7ffae887b922af8224d1990fb0a72980dd363a.zip | |
Merge branch 'master' of github.com:keplerproject/luarocks
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/build/builtin.lua | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/luarocks/build/builtin.lua b/src/luarocks/build/builtin.lua index 853b0361..96ce35a6 100644 --- a/src/luarocks/build/builtin.lua +++ b/src/luarocks/build/builtin.lua | |||
| @@ -230,12 +230,14 @@ function run(rockspec) | |||
| 230 | end | 230 | end |
| 231 | end | 231 | end |
| 232 | end | 232 | end |
| 233 | for name, dest in pairs(built_modules) do | 233 | if ok then |
| 234 | fs.make_dir(dest) | 234 | for name, dest in pairs(built_modules) do |
| 235 | ok = fs.copy(name, dest) | 235 | fs.make_dir(dest) |
| 236 | if not ok then | 236 | ok = fs.copy(name, dest) |
| 237 | err = "Failed installing "..name.." in "..dest | 237 | if not ok then |
| 238 | break | 238 | err = "Failed installing "..name.." in "..dest |
| 239 | break | ||
| 240 | end | ||
| 239 | end | 241 | end |
| 240 | end | 242 | end |
| 241 | if ok then | 243 | if ok then |
