diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-05-11 11:23:56 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-05-11 11:23:56 -0300 |
commit | b80244b566780c8095a75b06fe7669b1b0bcd7c0 (patch) | |
tree | 171cdfeb9e1d4d4f47fc8633d575a73a3b4822e6 /src | |
parent | dd6f0e719e8b761c86bab7246891512b9375fb91 (diff) | |
parent | 70c75776c2d8771c6d66dd4d5facbb4e55a1148e (diff) | |
download | luarocks-b80244b566780c8095a75b06fe7669b1b0bcd7c0.tar.gz luarocks-b80244b566780c8095a75b06fe7669b1b0bcd7c0.tar.bz2 luarocks-b80244b566780c8095a75b06fe7669b1b0bcd7c0.zip |
Merge branch 'master' of https://github.com/keplerproject/luarocks
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/fs/win32.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/luarocks/fs/win32.lua b/src/luarocks/fs/win32.lua index 12d86d1d..32766e53 100644 --- a/src/luarocks/fs/win32.lua +++ b/src/luarocks/fs/win32.lua | |||
@@ -125,6 +125,7 @@ function win32.wrap_script(file, dest, name, version) | |||
125 | local ppaths = "package.path="..util.LQ(lpath..";").."..package.path; package.cpath="..util.LQ(lcpath..";").."..package.cpath" | 125 | local ppaths = "package.path="..util.LQ(lpath..";").."..package.path; package.cpath="..util.LQ(lcpath..";").."..package.cpath" |
126 | local addctx = "local k,l,_=pcall(require,"..util.LQ("luarocks.loader")..") _=k and l.add_context("..util.LQ(name)..","..util.LQ(version)..")" | 126 | local addctx = "local k,l,_=pcall(require,"..util.LQ("luarocks.loader")..") _=k and l.add_context("..util.LQ(name)..","..util.LQ(version)..")" |
127 | wrapper:write(fs.Qb(lua)..' -e '..fs.Qb(ppaths)..' -e '..fs.Qb(addctx)..' '..fs.Qb(file)..' %*\n') | 127 | wrapper:write(fs.Qb(lua)..' -e '..fs.Qb(ppaths)..' -e '..fs.Qb(addctx)..' '..fs.Qb(file)..' %*\n') |
128 | wrapper:write("exit /b %ERRORLEVEL%\n") | ||
128 | wrapper:close() | 129 | wrapper:close() |
129 | return true | 130 | return true |
130 | end | 131 | end |