diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-12-08 22:51:09 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-12-08 22:51:09 -0600 |
| commit | 4c255d2fca7ce5701b131c701e3ccb0adff1a803 (patch) | |
| tree | 0089032b21dfa73f5e1214b0249b37a291e28903 /tar.lua.patch | |
| parent | c3eaf4e5107beebd926a2691753903235e7d2013 (diff) | |
| download | luarocks-packaging-master.tar.gz luarocks-packaging-master.tar.bz2 luarocks-packaging-master.zip | |
Diffstat (limited to '')
| -rw-r--r-- | tar.lua.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tar.lua.patch b/tar.lua.patch new file mode 100644 index 0000000..a94ee3c --- /dev/null +++ b/tar.lua.patch | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | diff --git a/src/luarocks/tools/tar.lua b/src/luarocks/tools/tar.lua | ||
| 2 | index 6db1334a..49139615 100644 | ||
| 3 | --- a/src/luarocks/tools/tar.lua | ||
| 4 | +++ b/src/luarocks/tools/tar.lua | ||
| 5 | @@ -51,11 +51,11 @@ local function octal_to_number(octal) | ||
| 6 | local number = 0 | ||
| 7 | octal = octal:gsub("%s", "") | ||
| 8 | for i = #octal, 1, -1 do | ||
| 9 | - local digit = math.tointeger(octal:sub(i, i)) | ||
| 10 | + local digit = tonumber(octal:sub(i, i)) | ||
| 11 | if not digit then | ||
| 12 | break | ||
| 13 | end | ||
| 14 | - number = number + (digit * math.tointeger(8 ^ exp)) | ||
| 15 | + number = number + (digit * (8 ^ exp)) | ||
| 16 | exp = exp + 1 | ||
| 17 | end | ||
| 18 | return number | ||
