[MacPorts] #37130: github portgroup: github.tarball_from downloads should set livecheck.url
#37130: github portgroup: github.tarball_from downloads should set livecheck.url -------------------------+-------------------------------- Reporter: aronnax@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: -------------------------+-------------------------------- I maintain a pair of ports, gst-plugins-cairovis and gst-plugins-math, which are hosted on GitHub (and of which I am the author). I generate and upload stable source tarballs under the projects' respective downloads on GitHub. I just realized that the livecheck for these ports is busted. I had to override the defaults by adding the following: {{{ livecheck.url https://github.com/${github.author}/${name}/downloads livecheck.regex ${name}-(\\d+(\\.\\d+)*)[regsub -all \\. ${extract.suffix} \\.] }}} It is understandable that I would have to write my own regex, but it would be nice if {{{ github.tarball_from downloads }}} automatically set {{{livecheck.url}}} to something useful. -- Ticket URL: <https://trac.macports.org/ticket/37130> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37130: github portgroup: github.tarball_from downloads should set livecheck.url --------------------------+-------------------------------- Reporter: aronnax@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: | --------------------------+-------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: I thought about this problem when creating the portgroup, but didn't solve it then because there were not that many ports needing to download from downloads instead of tags, and even fewer of those that had downloads but not tags. Your projects have tags, so why not let the default github portgroup livecheck use those? The fourth argument to github.setup is currently called tag_prefix. If we're going to change the livecheck when downloads are from downloads and not from tags, then that parameter's name should be changed, since then it would be the prefix of either the tag or the download. -- Ticket URL: <https://trac.macports.org/ticket/37130#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37130: github portgroup: github.tarball_from downloads should set livecheck.url --------------------------+-------------------------------- Reporter: aronnax@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: | --------------------------+-------------------------------- Comment (by ryandesign@…): Replying to [comment:1 ryandesign@…]:
Your projects have tags, so why not let the default github portgroup livecheck use those?
As in the attached patches. -- Ticket URL: <https://trac.macports.org/ticket/37130#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37130: github portgroup: github.tarball_from downloads should set livecheck.url --------------------------+-------------------------------- Reporter: aronnax@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: wontfix | Keywords: Port: | --------------------------+-------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => wontfix Comment: Replying to [comment:2 ryandesign@…]:
As in the attached patches.
r101096, r101097. As for the main point of this ticket—using downloads for livecheck—I think we can now justify not doing so, since the github uploads/downloads feature has been deprecated: https://github.com/blog/1302-goodbye-uploads -- Ticket URL: <https://trac.macports.org/ticket/37130#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts