Ticket #32589: patch-base-src-port1.0-portlivecheck.tcl.diff
File patch-base-src-port1.0-portlivecheck.tcl.diff, 1.6 KB (added by pixilla (Bradley Giesbrecht), 13 years ago) |
---|
-
port1.0/portlivecheck.tcl
old new 1 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 2 2 # portlivecheck.tcl 3 3 # 4 # $Id: portlivecheck.tcl 8 8031 2011-12-16 22:44:18Z raimue@macports.org $4 # $Id: portlivecheck.tcl 83525 2011-09-04 11:59:25Z cal@macports.org $ 5 5 # 6 6 # Copyright (c) 2007-2011 The MacPorts Project 7 7 # Copyright (c) 2005-2007 Paul Guyot <pguyot@kallisys.net>, … … 169 169 set updated_version 0 170 170 set foundmatch 0 171 171 while {[gets $chan line] >= 0} { 172 set matches [regexp -all -inline $the_re $line] 173 foreach {matched upver} $matches { 172 set lastoff 0 173 while {[regexp -start $lastoff -indices $the_re $line offsets]} { 174 regexp -start $lastoff $the_re $line matched upver 174 175 set foundmatch 1 175 176 if {$updated_version == 0 || [vercmp $upver $updated_version] > 0} { 176 177 set updated_version $upver 177 178 } 178 179 ui_debug "The regex matched \"$matched\", extracted \"$upver\"" 180 lassign $offsets firstoff lastoff 179 181 } 180 182 } 181 183 if {$foundmatch == 1} {