Re: Highlight feature of DP: livecheck
Paul Guyot <[email protected]>
| Newsgroups | gmane.os.opendarwin.darwinports |
|---|---|
| Message-ID | <[email protected]> |
Le 8 août 06 à 15:16, Charlie Allom a écrit :
> On Wed, Aug 02, 2006 at 05:07:28PM +0900, Paul Guyot wrote:
>>
>> livecheck.check regex
>> # url of the web page to retrieve.
>> livecheck.url http://www.bunkus.org/videotools/mkvtoolnix/
>> source.html
>> # expression used to retrieve the version. The first match is the
>> current version of the software.
>> livecheck.regex ${name} (\[0-9.\]+)
>
> would it be possible to have livecheck display what it matched - via
> port -v?
>
> I am currently finding it hard to guess what Tcl may be matching.
-d returns the parenthesized part.
[15:21]~(3)> sudo port -d livecheck mkvtoolnix
DEBUG: Found port in file:///Junk/src/opendarwin/darwinports/dports/
multimedia/mkvtoolnix
DEBUG: Changing to port directory: /Junk/src/opendarwin/darwinports/
dports/multimedia/mkvtoolnix
DEBUG: Requested variant powerpc is not provided by port mkvtoolnix.
DEBUG: Requested variant darwin is not provided by port mkvtoolnix.
DEBUG: Requested variant macosx is not provided by port mkvtoolnix.
DEBUG: Skipping completed com.apple.main (mkvtoolnix)
DEBUG: Executing com.apple.livecheck (mkvtoolnix)
DEBUG: Portfile modification date is Sat Jul 22 16:39:18 JST 2006
DEBUG: Port (livecheck) version is 1.7.0
DEBUG: mkvtoolnix seems to be up to date
I have just updated the code to also show what the regex matched.
DEBUG: The regex matched >mkvtoolnix 1.7.0-1<
Paul
--
Ministre ultraplénipotentiaire en disponibilité.
Mobile. Sans baignoire fixe.
http://www.kallisys.com/
http://www-poleia.lip6.fr/~guyot/