diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-09-22 13:09:50 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-09-22 13:09:50 -0300 |
commit | c178fbbea1143c11b4930d65858ee5887055a50f (patch) | |
tree | 1067303935b20899d18dba7db2500c6601470165 /src | |
parent | b151ae860801f41acb542af0145ce1ccaa0aa833 (diff) | |
parent | e869d7fa700129caf7fe8f05cb82116102b4b767 (diff) | |
download | luarocks-c178fbbea1143c11b4930d65858ee5887055a50f.tar.gz luarocks-c178fbbea1143c11b4930d65858ee5887055a50f.tar.bz2 luarocks-c178fbbea1143c11b4930d65858ee5887055a50f.zip |
Merge pull request #426 from usstwxy/patch-1
Update tar.lua
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/tools/tar.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/luarocks/tools/tar.lua b/src/luarocks/tools/tar.lua index 3b431b8e..b2bd930a 100644 --- a/src/luarocks/tools/tar.lua +++ b/src/luarocks/tools/tar.lua | |||
@@ -31,9 +31,10 @@ local function octal_to_number(octal) | |||
31 | local number = 0 | 31 | local number = 0 |
32 | for i = #octal,1,-1 do | 32 | for i = #octal,1,-1 do |
33 | local digit = tonumber(octal:sub(i,i)) | 33 | local digit = tonumber(octal:sub(i,i)) |
34 | if not digit then break end | 34 | if digit then |
35 | number = number + (digit * 8^exp) | 35 | number = number + (digit * 8^exp) |
36 | exp = exp + 1 | 36 | exp = exp + 1 |
37 | end | ||
37 | end | 38 | end |
38 | return number | 39 | return number |
39 | end | 40 | end |