Opened 13 years ago
Closed 12 years ago
#32928 closed defect (fixed)
py-mechanize @0.1.9 fails to perform a livecheck
Reported by: | nonstop.server@… | Owned by: | akitada@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | haspatch | Cc: | krischik@… |
Port: | py-mechanize |
Description
Port fails to perform a livecheck.
% port -v livecheck py-mechanize Error: cannot check if py-mechanize was updated (The requested URL returned error: 406)
Setting variables livecheck.regex, livecheck.type, and livecheck.url solves the error.
% port -d livecheck py-mechanize <snip output for brevity> DEBUG: livecheck phase started at Wed Jan 18 18:50:07 CET 2012 DEBUG: Executing org.macports.livecheck (py-mechanize) DEBUG: Portfile modification date is Wed Jan 18 18:49:15 CET 2012 DEBUG: Port (livecheck) version is 0.1.9 DEBUG: Fetching http://wwwsearch.sourceforge.net/mechanize/src DEBUG: The regex is "mechanize-([0-9.]+).tar.gz" DEBUG: The regex matched "mechanize-0.1.8.tar.gz", extracted "0.1.8" DEBUG: The regex matched "mechanize-0.1.9.tar.gz", extracted "0.1.9" DEBUG: The regex matched "mechanize-0.1.10.tar.gz", extracted "0.1.10" DEBUG: The regex matched "mechanize-0.1.11.tar.gz", extracted "0.1.11" DEBUG: The regex matched "mechanize-0.2.0.tar.gz", extracted "0.2.0" DEBUG: The regex matched "mechanize-0.2.1.tar.gz", extracted "0.2.1" DEBUG: The regex matched "mechanize-0.2.2.tar.gz", extracted "0.2.2" DEBUG: The regex matched "mechanize-0.2.3.tar.gz", extracted "0.2.3" DEBUG: The regex matched "mechanize-0.2.4.tar.gz", extracted "0.2.4" DEBUG: The regex matched "mechanize-0.2.5.tar.gz", extracted "0.2.5" py-mechanize seems to have been updated (port version: 0.1.9, new version: 0.2.5)
A difference report of the Portfile is attached.
Attachments (2)
Change History (7)
Changed 13 years ago by nonstop.server@…
Attachment: | py-mechanize.diff added |
---|
comment:1 follow-up: 2 Changed 13 years ago by mf2k (Frank Schima)
Note that livecheck needs to be inside of a subport block like so:
if {${name} == ${subport}} { livecheck.regex mechanize-(\[0-9.\]+)${extract.suffix} livecheck.type regex livecheck.url ${homepage}/src } else { livecheck.type none }
Changed 13 years ago by nonstop.server@…
Attachment: | py-mechanize.2.diff added |
---|
comment:2 Changed 13 years ago by nonstop.server@…
Replying to macsforever2000@…:
Note that livecheck needs to be inside of a subport block like so:
Thanks for the tip, I have updated the patch with your suggestion.
comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | akitada@… removed |
---|---|
Owner: | changed from macports-tickets@… to akitada@… |
comment:4 Changed 12 years ago by jmroot (Joshua Root)
Cc: | krischik@… added |
---|
comment:5 Changed 12 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
proposed patch