[MacPorts] #32928: py-mechanize @0.1.9 fails to perform a livecheck
#32928: py-mechanize @0.1.9 fails to perform a livecheck --------------------------------------+------------------------------------- Reporter: nonstop.server@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: haspatch | Port: py-mechanize --------------------------------------+------------------------------------- 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. -- Ticket URL: <https://trac.macports.org/ticket/32928> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32928: py-mechanize @0.1.9 fails to perform a livecheck --------------------------------------+------------------------------------- Reporter: nonstop.server@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: haspatch | Port: py-mechanize --------------------------------------+------------------------------------- Comment(by macsforever2000@…): 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 } }}} -- Ticket URL: <https://trac.macports.org/ticket/32928#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32928: py-mechanize @0.1.9 fails to perform a livecheck --------------------------------------+------------------------------------- Reporter: nonstop.server@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: haspatch | Port: py-mechanize --------------------------------------+------------------------------------- Comment(by nonstop.server@…): Replying to [comment:1 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.
-- Ticket URL: <https://trac.macports.org/ticket/32928#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32928: py-mechanize @0.1.9 fails to perform a livecheck --------------------------------------+------------------------------------- Reporter: nonstop.server@… | Owner: akitada@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: haspatch | Port: py-mechanize --------------------------------------+------------------------------------- Changes (by ryandesign@…): * cc: akitada@… (removed) * owner: macports-tickets@… => akitada@… -- Ticket URL: <https://trac.macports.org/ticket/32928#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32928: py-mechanize @0.1.9 fails to perform a livecheck --------------------------------------+------------------------------------- Reporter: nonstop.server@… | Owner: akitada@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: haspatch | Port: py-mechanize --------------------------------------+------------------------------------- Changes (by jmr@…): * cc: krischik@… (added) -- Ticket URL: <https://trac.macports.org/ticket/32928#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32928: py-mechanize @0.1.9 fails to perform a livecheck ---------------------------------------+------------------------------------ Reporter: nonstop.server@… | Owner: akitada@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: haspatch Port: py-mechanize | ---------------------------------------+------------------------------------ Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: r95445 -- Ticket URL: <https://trac.macports.org/ticket/32928#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts