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

raimue at macports.org raimue at macports.org
Sun Mar 9 17:04:11 PDT 2008


Revision: 34874
          http://trac.macosforge.org/projects/macports/changeset/34874
Author:   raimue at macports.org
Date:     2008-03-09 17:04:09 -0700 (Sun, 09 Mar 2008)

Log Message:
-----------
port1.0/portlivecheck.tcl:
Fix livecheck for ports using customized ${livecheck.version}.
Thanks to Simon Ruderich for the report.

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

Modified: trunk/base/src/port1.0/portlivecheck.tcl
===================================================================
--- trunk/base/src/port1.0/portlivecheck.tcl	2008-03-09 23:36:51 UTC (rev 34873)
+++ trunk/base/src/port1.0/portlivecheck.tcl	2008-03-10 00:04:09 UTC (rev 34874)
@@ -187,7 +187,7 @@
                     while {[gets $chan line] >= 0} {
                         if {[regexp $the_re $line matched upver]} {
                             set foundmatch 1
-                            if {[rpm-vercomp $upver $updated_version] > 0} {
+                            if {$updated_version == 0 || [rpm-vercomp $upver $updated_version] > 0} {
                                 set updated_version $upver
                             }
                             ui_debug "The regex matched \"$matched\", extracted \"$upver\""

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080309/a92f69d0/attachment.html 


More information about the macports-changes mailing list