Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#34942 closed defect (fixed)

pv @1.2.0 fails to perform a livecheck

Reported by: nonstop.server@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: haspatch Cc: meissnem@…, ryandesign (Ryan Carsten Schmidt)
Port: pv

Description

Port pv fails to perform a livecheck.

% port -v livecheck pv
Error: cannot check if pv was updated (regex didn't match)

Setting variables livecheck.regex, livecheck.type, and livecheck.url solves this error.

% port -d livecheck pv
[ snip output for brevity ]
DEBUG: livecheck phase started at Wed Jun 20 17:03:06 CEST 2012
DEBUG: Executing org.macports.livecheck (pv)
DEBUG: Portfile modification date is Wed Jun 20 17:03:03 CEST 2012
DEBUG: Port (livecheck) version is 1.2.0
DEBUG: Fetching http://www.ivarch.com/programs/pv.shtml
DEBUG: The regex is ">pv-([0-9.]+).tar.bz2<"
DEBUG: The regex matched ">pv-1.3.1.tar.bz2<", extracted "1.3.1"
pv seems to have been updated (port version: 1.2.0, new version: 1.3.1)

A difference report of the Portfile is attached.

Attachments (1)

pv.diff (830 bytes) - added by nonstop.server@… 12 years ago.
proposed patch

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by nonstop.server@…

Attachment: pv.diff added

proposed patch

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed

It's an error to add http://www.ivarch.com/programs/pv.shtml to master_sites because that's not a directory from which the distfile can be downloaded; that's merely the homepage. And actually the default for livecheck.url is homepage, so we can simplify this by just not specifying livecheck.url. Committed in r94713 (maintainer timeout).

comment:2 Changed 12 years ago by nonstop.server@…

Thanks for your explanation about the correct usage of master_sites.
It seems that the latest versions of pv are only available at ivarch.com, so I have added this server in my request to update this port.
This time I updated master_sites with the correct location, please check ticket #35003.

Note: See TracTickets for help on using tickets.