Opened 15 months ago
Last modified 14 months ago
#68086 assigned defect
oofcanvas: livecheck doesn't work
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | snarkhunter (Steve Langer) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | oof_manager@… | |
Port: | oofcanvas |
Description
% port livecheck oofcanvas Error: cannot check if oofcanvas was updated (The requested URL returned error: 403)
Change History (2)
comment:1 Changed 15 months ago by snarkhunter (Steve Langer)
comment:2 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
livecheck is user-visible. It's even on our web site now. See the circled exclamation mark to the right of the version here:
https://ports.macports.org/port/oofcanvas/details/
To fix livecheck, you set livecheck.type
, livecheck.url
, and livecheck.regex
correctly. livecheck.type
is typically regex
to indicate that you want MacPorts to run a single-line regular expression over the contents of a page. If you want a multi-line regex instead, use regexm
. livecheck.url
is the page you want it to fetch, and livecheck.regex
is the regular expression you want it to use. Put capturing parentheses around the part of the regular expression that represents a found version number. MacPorts will collect all the matches, sort them using its version comparison procedure, and return the largest one.
See the documentation for more:
What do I need to do to get livecheck to work? Is there any benefit if the port maintainer and the port developer are the same person? There is an update in the download directory on our server, but as I commented in #68085 it's not relevant for MacPorts.