Re: Livecheck regex with version in url path

2019-12-23 Thread Steven Smith
> The downloads.haskell.org server is misconfigured. It's always > gzipping its response content, ignoring the Accept-Encoding headers. > Even if you set Accept-Encoding: identity the server sends a > compressed response. Thank you. I’ve posted an issue here: https://mail.haskell.org/pipermail/gl

Re: Livecheck regex with version in url path

2019-12-23 Thread David Gilman
The downloads.haskell.org server is misconfigured. It's always gzipping its response content, ignoring the Accept-Encoding headers. Even if you set Accept-Encoding: identity the server sends a compressed response. Try it out for yourself: macports runs the equivalent of this: curl -H "Accept: tex

Re: Livecheck regex with version in url path

2019-12-23 Thread Steven Smith
For example, this livecheck produces the following error: livecheck.type regex livecheck.url https://downloads.haskell.org/~${name} livecheck.regex (\\d+(?:\\.\\d+){1,3}) DEBUG: Executing org.macports.livecheck (ghc) DEBUG: Port (livecheck) version is 8.8.1 DEBUG: Fetching https

Re: Livecheck regex with version in url path

2019-12-23 Thread Steven Smith
> you need to find a URL that doesn't contain the version number for MacPorts > to download. For ghc, https://downloads.haskell.org/~ghc/ looks like a > reasonable URL to use. Of course you'll have to change the regex to match > directories rather than files. Would you or someone please provid

Re: Livecheck regex with version in url path

2019-12-23 Thread Ryan Schmidt
On Dec 23, 2019, at 12:39, Steven Smith wrote: > How does one write a live check for ghc, whose version lives in the url path? > > https://downloads.haskell.org/ghc/8.8.1/ghc-8.8.1-src.tar.xz > > I’ve tried stuff like the following, without success: > > livecheck.type regex

Livecheck regex with version in url path

2019-12-23 Thread Steven Smith
How does one write a live check for ghc, whose version lives in the url path? https://downloads.haskell.org/ghc/8.8.1/ghc-8.8.1-src.tar.xz I’ve tried stuff like the following, without success: livecheck.type regex