[149299] trunk/base/src/port1.0/portlivecheck.tcl
raimue at macports.org
raimue at macports.org
Fri Jun 10 05:32:50 PDT 2016
Revision: 149299
https://trac.macports.org/changeset/149299
Author: raimue at macports.org
Date: 2016-06-10 05:32:50 -0700 (Fri, 10 Jun 2016)
Log Message:
-----------
livecheck: report error if matched version is old
Applying the same message to 'livecheck.type regexm' that was already
introduced for 'regex' in r127797.
Revision Links:
--------------
https://trac.macports.org/changeset/127797
Modified Paths:
--------------
trunk/base/src/port1.0/portlivecheck.tcl
Modified: trunk/base/src/port1.0/portlivecheck.tcl
===================================================================
--- trunk/base/src/port1.0/portlivecheck.tcl 2016-06-10 07:19:48 UTC (rev 149298)
+++ trunk/base/src/port1.0/portlivecheck.tcl 2016-06-10 12:32:50 UTC (rev 149299)
@@ -160,12 +160,16 @@
set data [read $chan]
if {[regexp $the_re $data matched updated_version]} {
set foundmatch 1
+ ui_debug "The regex matched \"$matched\", extracted \"$updated_version\""
if {$updated_version ne ${livecheck.version}} {
- set updated 1
+ if {[vercmp $updated_version ${livecheck.version}] > 0} {
+ set updated 1
+ } else {
+ ui_error "livecheck failed for ${subport}: extracted version '$updated_version' is older than livecheck.version '${livecheck.version}'"
+ }
} else {
set updated 0
}
- ui_debug "The regex matched \"$matched\", extracted \"$updated_version\""
}
} else {
set updated_version 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160610/c424766f/attachment.html>
More information about the macports-changes
mailing list