[lua-torch-sys] 01/08: New upstream version 0~20161027-gf073f05

Zhou Mo cdluminate-guest at moszumanska.debian.org
Fri Jul 28 09:45:28 UTC 2017


This is an automated email from the git hooks/post-receive script.

cdluminate-guest pushed a commit to branch master
in repository lua-torch-sys.

commit 89bece994fdfc7f937c6ed03a4fbfa64889b1c4f
Author: Zhou Mo <cdluminate at gmail.com>
Date:   Fri Jul 28 09:35:21 2017 +0000

    New upstream version 0~20161027-gf073f05
---
 init.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/init.lua b/init.lua
index 75f1722..54f81fa 100644
--- a/init.lua
+++ b/init.lua
@@ -50,13 +50,13 @@ sys.execute = execute
 function sys.fexecute(cmd, readwhat)
    readwhat = readwhat or '*all'
    local tmpfile = os.tmpname()
-   local cmd = cmd .. ' 1>'.. tmpfile..' 2>' .. tmpfile
+   local cmd = cmd .. ' >'.. tmpfile..' 2>&1'
    os.execute(cmd)
    local file = _G.assert(io.open(tmpfile))
    local s= file:read(readwhat)
    file:close()
    s = s:gsub('^%s*',''):gsub('%s*$','')
-   os.execute('rm ' .. tmpfile)
+   os.remove(tmpfile)
    return s
 end
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lua-torch-sys.git



More information about the debian-science-commits mailing list