Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#14532 closed defect (fixed)

livecheck gives wrong message if regex doesn't match

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone: MacPorts 1.7.0
Component: base Version: 1.7.0
Keywords: Cc:
Port:

Description

If the livecheck regex doesn't match, it says the software seems to have been updated to version "0". This portfile:

PortSystem              1.0
name                    foo
version                 1.0

livecheck.check         regex
livecheck.url           http://www.macports.org
livecheck.regex         foobar

Gives this output in MacPorts built from trunk r34550:

$ port livecheck
foo seems to have been updated (port version: 1.0, new version: 0)
$

Running in MacPorts 1.6.0 I get this better message:

$ sudo port livecheck
Error: cannot check if foo was updated (regex didn't match)
$

My guess is this problem was introduced with r34331 so I'm assigning the ticket to Rainer.

Change History (3)

comment:1 Changed 16 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Thanks for the report, fixed in r34717.

comment:2 Changed 15 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

comment:3 Changed 14 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 1.7.0
Note: See TracTickets for help on using tickets.