Opened 10 years ago

Last modified 9 years ago

#44894 new enhancement

base: improve livecheck.type moddate — at Version 3

Reported by: pixilla (Bradley Giesbrecht) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.3.1
Keywords: haspatch Cc:
Port:

Description (last modified by pixilla (Bradley Giesbrecht))

Currently livecheck.type moddate uses the Portfiles mtime for comparison to remotes mtime.

It would be useful to allow control of the comparison time. Attached is a patch to portlivecheck.tcl which enhances the livecheck.type moddate option to allow setting the comparison time, defaulting to current behavior.

There is also a new function "getmoddate" added to curl.c and a new livecheck.type option "moddate2" in portlivecheck.tcl which uses getmoddate to provide a more informative ui_msg.

The moddate2 option is added for easy comparison, not to add another option. I am proposing replacing the use of isnewer with getmoddate.

Change History (5)

Changed 10 years ago by pixilla (Bradley Giesbrecht)

Changed 10 years ago by pixilla (Bradley Giesbrecht)

comment:1 Changed 10 years ago by pixilla (Bradley Giesbrecht)

New features in the patches can be tested like this:

#moddate2:
version             20130325
livecheck.type      moddate2
livecheck.moddate   [clock scan ${version}]
livecheck.url       [lindex ${master_sites} 0]/[lindex ${distfiles} 0]

or the little changed moddate option:

#moddate:
version             20130325
livecheck.type      moddate
livecheck.moddate   [clock scan ${version}]
livecheck.url       [lindex ${master_sites} 0]/[lindex ${distfiles} 0]

comment:2 Changed 10 years ago by pixilla (Bradley Giesbrecht)

Description: modified (diff)

comment:3 Changed 10 years ago by pixilla (Bradley Giesbrecht)

Description: modified (diff)
Note: See TracTickets for help on using tickets.