Explorar o código

fix new.lua url

ruki %!s(int64=2) %!d(string=hai) anos
pai
achega
ad20e070e4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/new.lua

+ 1 - 1
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)