diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-12 22:43:12 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-01-12 22:43:12 -0200 |
commit | 8d6845e332ebf71729fa7aa76c70856af5b321bc (patch) | |
tree | 0f36fea2fe98530b792ea913e5bbfac7fff44a03 | |
parent | d98c3e0cb9628627dfc7121635ab0a438b3292c9 (diff) | |
download | luarocks-8d6845e332ebf71729fa7aa76c70856af5b321bc.tar.gz luarocks-8d6845e332ebf71729fa7aa76c70856af5b321bc.tar.bz2 luarocks-8d6845e332ebf71729fa7aa76c70856af5b321bc.zip |
Make conversion more robust for Lua 5.3
-rw-r--r-- | src/luarocks/upload.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/upload.lua b/src/luarocks/upload.lua index 1b1b346d..19ddee8d 100644 --- a/src/luarocks/upload.lua +++ b/src/luarocks/upload.lua | |||
@@ -77,7 +77,7 @@ function upload.run(...) | |||
77 | 77 | ||
78 | if rock_fname then | 78 | if rock_fname then |
79 | util.printout(("Sending " .. tostring(rock_fname) .. " ...")) | 79 | util.printout(("Sending " .. tostring(rock_fname) .. " ...")) |
80 | res, err = api:method("upload_rock/" .. tostring(res.version.id), nil, { | 80 | res, err = api:method("upload_rock/" .. ("%d"):format(res.version.id), nil, { |
81 | rock_file = multipart.new_file(rock_fname) | 81 | rock_file = multipart.new_file(rock_fname) |
82 | }) | 82 | }) |
83 | if not res then return nil, err end | 83 | if not res then return nil, err end |