[MacPorts] #44894: base: improve livecheck.type moddate
#44894: base: improve livecheck.type moddate -------------------------+-------------------------------- Reporter: pixilla@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.1 Keywords: haspatch | Port: -------------------------+-------------------------------- 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 mod date proc 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. -- Ticket URL: <https://trac.macports.org/ticket/44894> MacPorts <http://www.macports.org/> Ports system for OS X
#44894: base: improve livecheck.type moddate --------------------------+-------------------------------- Reporter: pixilla@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.1 Resolution: | Keywords: haspatch Port: | --------------------------+-------------------------------- Comment (by pixilla@…): 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] }}} -- Ticket URL: <https://trac.macports.org/ticket/44894#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#44894: base: improve livecheck.type moddate --------------------------+-------------------------------- Reporter: pixilla@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.1 Resolution: | Keywords: haspatch Port: | --------------------------+-------------------------------- Description changed by pixilla@…: Old description:
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 mod date proc 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.
New description: 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 mod date proc 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. -- -- Ticket URL: <https://trac.macports.org/ticket/44894#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#44894: base: improve livecheck.type moddate --------------------------+-------------------------------- Reporter: pixilla@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.1 Resolution: | Keywords: haspatch Port: | --------------------------+-------------------------------- Description changed by pixilla@…: Old description:
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 mod date proc 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.
New description: 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. -- -- Ticket URL: <https://trac.macports.org/ticket/44894#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#44894: base: improve livecheck.type moddate --------------------------+-------------------------------- Reporter: pixilla@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.1 Resolution: | Keywords: haspatch Port: | --------------------------+-------------------------------- Comment (by pixilla@…): Example output using the pear-install-phar port and moddate2: {{{ $ port livecheck pear-install-phar pear-install-phar seems to have been updated (port version: Mon Mar 25 00:00:00 PDT 2013, new version: Sun Aug 10 13:41:17 PDT 2014) }}} -- Ticket URL: <https://trac.macports.org/ticket/44894#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#44894: base: improve livecheck.type moddate --------------------------+-------------------------------- Reporter: pixilla@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.1 Resolution: | Keywords: haspatch Port: | --------------------------+-------------------------------- Comment (by mk@…): Cool stuff! This can be very useful in some cases!!! :-) -- Ticket URL: <https://trac.macports.org/ticket/44894#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts