<pre style='margin:0'>
Rainer Müller (raimue) pushed a commit to branch master
in repository macports-base.

</pre>
<p><a href="https://github.com/macports/macports-base/commit/d33a8a0dfbc68614a5b20cc870245f53a849473b">https://github.com/macports/macports-base/commit/d33a8a0dfbc68614a5b20cc870245f53a849473b</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new d33a8a0  livecheck: Stop on negative regexp offset
</span>d33a8a0 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit d33a8a0dfbc68614a5b20cc870245f53a849473b
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Fri Jan 27 16:49:55 2017 +0100

<span style='display:block; white-space:pre;color:#404040;'>    livecheck: Stop on negative regexp offset
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    If the given regex is an empty string, regexp returns indices {0 -1}.
</span><span style='display:block; white-space:pre;color:#404040;'>    This -1 was taken as the offset where to start applying the regex again,
</span><span style='display:block; white-space:pre;color:#404040;'>    leading to an infinite loop handling the same line over and over.
</span>---
 src/port1.0/portlivecheck.tcl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/portlivecheck.tcl b/src/port1.0/portlivecheck.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 8fae97c..486d959 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/portlivecheck.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/portlivecheck.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -172,7 +172,7 @@ proc portlivecheck::livecheck_main {args} {
</span>                     set updated_version 0
                     while {[gets $chan line] >= 0} {
                         set lastoff 0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                        while {[regexp -start $lastoff -indices $the_re $line offsets]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        while {$lastoff >= 0 && [regexp -start $lastoff -indices $the_re $line offsets]} {
</span>                             regexp -start $lastoff $the_re $line matched upver
                             set foundmatch 1
                             if {$updated_version == 0 || [vercmp $upver $updated_version] > 0} {
</pre><pre style='margin:0'>

</pre>