Ticket #32474 (closed defect: fixed)
sshguard-ipfw @1.4_0 livecheck fails to extract latest version
| Reported by: | nonstop.server@… | Owned by: | nefar@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.3 |
| Keywords: | haspatch | Cc: | |
| Port: | sshguard-ipfw |
Description
The livecheck for this port fails to extract the latest available version.
port -d livecheck sshguard-ipfw <snip output for brevity> DEBUG: livecheck phase started at Fri Dec 9 09:58:03 CET 2011 DEBUG: Executing org.macports.livecheck (sshguard-ipfw) DEBUG: Portfile modification date is Thu Mar 04 22:00:41 CET 2010 DEBUG: Port (livecheck) version is 1.4 DEBUG: Loading the defaults from '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/livecheck/sourceforge.tcl' DEBUG: Fetching http://sourceforge.net/api/file/index/project-name/sshguard/rss DEBUG: The regex is "/sshguard/([a-zA-Z0-9.]+\.[a-zA-Z0-9.]+)/" DEBUG: The regex matched "/sshguard/1.1rc1/", extracted "1.1rc1" DEBUG: The regex matched "/sshguard/1.1rc1/", extracted "1.1rc1" DEBUG: The regex matched "/sshguard/1.1rc1/", extracted "1.1rc1" DEBUG: The regex matched "/sshguard/1.1rc1/", extracted "1.1rc1" sshguard-ipfw seems to have been updated (port version: 1.4, new version: 1.1rc1)
Setting variables livecheck.regex, livecheck.type, and livecheck.url seems to do the trick.
% port -d livecheck sshguard-ipfw \ > livecheck.regex='sshguard-(\[0-9\.\]*)\.tar\.bz2' \ > livecheck.type=regex \ > livecheck.url=http://sourceforge.net/projects/sshguard/ <snip output for brevity> DEBUG: livecheck phase started at Thu Dec 8 22:19:33 CET 2011 DEBUG: Executing org.macports.livecheck (sshguard-ipfw) DEBUG: Portfile modification date is Thu Mar 04 22:00:41 CET 2010 DEBUG: Port (livecheck) version is 1.4 DEBUG: Fetching http://sourceforge.net/projects/sshguard/ DEBUG: The regex is "sshguard-([0-9.]*).tar.bz2" DEBUG: The regex matched "sshguard-1.5.tar.bz2", extracted "1.5" DEBUG: The regex matched "sshguard-1.5.tar.bz2", extracted "1.5" sshguard-ipfw seems to have been updated (port version: 1.4, new version: 1.5)
A difference report of the Portfile is attached.
Attachments
Change History
comment:1 follow-up: ↓ 2 Changed 18 months ago by macsforever2000@…
- Cc nefar@… removed
- Owner changed from macports-tickets@… to nefar@…
comment:2 in reply to: ↑ 1 Changed 18 months ago by nonstop.server@…
Replying to macsforever2000@…:
The revision should not be increased just for adding livecheck. Also, we generally add live check to the bottom of the portfile.
Thank you for the tip, I'll remember that next time.
Note: See
TracTickets for help on using
tickets.


The revision should not be increased just for adding livecheck. Also, we generally add live check to the bottom of the portfile.