fix new.lua url

pull/2496/head
ruki 1 year ago
parent 767197f067
commit ad20e070e4
  1. 2
      scripts/new.lua

@ -105,7 +105,7 @@ function generate_package(reponame, get_data)
local tmpfile = os.tmpfile({ramdisk = false}) .. ".tar.gz"
repodir = tmpfile .. ".dir"
file:write(' add_urls("https://' .. host .. '/' .. reponame .. '/-/archive/$(version).tar.gz",\n')
file:write(' add_urls("https://' .. host .. '/' .. reponame .. '/archive/refs/tags/$(version).tar.gz",\n')
file:print(' "%s")\n', giturl)
print("downloading %s", url)

Loading…
Cancel
Save