[88031] trunk/base/src/port1.0/portlivecheck.tcl

raimue at macports.org raimue at macports.org
Fri Dec 16 14:44:20 PST 2011


Revision: 88031
          http://trac.macports.org/changeset/88031
Author:   raimue at macports.org
Date:     2011-12-16 14:44:18 -0800 (Fri, 16 Dec 2011)
Log Message:
-----------
port livecheck regex now finds multiple matches on the same line

http://lists.macosforge.org/pipermail/macports-dev/2011-December/017084.html

Modified Paths:
--------------
    trunk/base/src/port1.0/portlivecheck.tcl

Modified: trunk/base/src/port1.0/portlivecheck.tcl
===================================================================
--- trunk/base/src/port1.0/portlivecheck.tcl	2011-12-16 21:12:00 UTC (rev 88030)
+++ trunk/base/src/port1.0/portlivecheck.tcl	2011-12-16 22:44:18 UTC (rev 88031)
@@ -169,7 +169,8 @@
                     set updated_version 0
                     set foundmatch 0
                     while {[gets $chan line] >= 0} {
-                        if {[regexp $the_re $line matched upver]} {
+                        set matches [regexp -all -inline $the_re $line]
+                        foreach {matched upver} $matches {
                             set foundmatch 1
                             if {$updated_version == 0 || [vercmp $upver $updated_version] > 0} {
                                 set updated_version $upver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111216/c403e12c/attachment.html>


More information about the macports-changes mailing list