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

cal at macports.org cal at macports.org
Sat May 3 14:55:18 PDT 2014


Revision: 119680
          https://trac.macports.org/changeset/119680
Author:   cal at macports.org
Date:     2014-05-03 14:55:18 -0700 (Sat, 03 May 2014)
Log Message:
-----------
base/port1.0/portlivecheck.tcl: Replace ev[ai]l with Tcl expand operator

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

Modified: trunk/base/src/port1.0/portlivecheck.tcl
===================================================================
--- trunk/base/src/port1.0/portlivecheck.tcl	2014-05-03 21:52:56 UTC (rev 119679)
+++ trunk/base/src/port1.0/portlivecheck.tcl	2014-05-03 21:55:18 UTC (rev 119680)
@@ -146,7 +146,7 @@
         "regexm" {
             # single and multiline regex
             ui_debug "Fetching ${livecheck.url}"
-            if {[catch {eval curl fetch $curl_options {${livecheck.url}} $tempfile} error]} {
+            if {[catch {curl fetch {*}$curl_options ${livecheck.url} $tempfile} error]} {
                 ui_error "cannot check if $subport was updated ($error)"
                 set updated -1
             } else {
@@ -198,7 +198,7 @@
         }
         "md5" {
             ui_debug "Fetching ${livecheck.url}"
-            if {[catch {eval curl fetch $curl_options {${livecheck.url}} $tempfile} error]} {
+            if {[catch {curl fetch {*}$curl_options ${livecheck.url} $tempfile} error]} {
                 ui_error "cannot check if $subport was updated ($error)"
                 set updated -1
             } else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140503/390417d2/attachment.html>


More information about the macports-changes mailing list