Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/luajit-rocks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'luarocks/src/luarocks/tools/tar.lua')
-rw-r--r--luarocks/src/luarocks/tools/tar.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/luarocks/src/luarocks/tools/tar.lua b/luarocks/src/luarocks/tools/tar.lua
index 03f7de3..b2bd930 100644
--- a/luarocks/src/luarocks/tools/tar.lua
+++ b/luarocks/src/luarocks/tools/tar.lua
@@ -31,9 +31,10 @@ local function octal_to_number(octal)
local number = 0
for i = #octal,1,-1 do
local digit = tonumber(octal:sub(i,i))
- if not digit then break end
- number = number + (digit * 8^exp)
- exp = exp + 1
+ if digit then
+ number = number + (digit * 8^exp)
+ exp = exp + 1
+ end
end
return number
end
@@ -143,6 +144,7 @@ function tar.untar(filename, destdir)
util.printout()
--]]
end
+ tar_handle:close()
return true
end