[137780] branches/gsoc15-portfile/github2port/github2port

chunyang at macports.org chunyang at macports.org
Fri Jun 19 07:40:08 PDT 2015


Revision: 137780
          https://trac.macports.org/changeset/137780
Author:   chunyang at macports.org
Date:     2015-06-19 07:40:07 -0700 (Fri, 19 Jun 2015)
Log Message:
-----------
github2port: simplify a bit

Modified Paths:
--------------
    branches/gsoc15-portfile/github2port/github2port

Modified: branches/gsoc15-portfile/github2port/github2port
===================================================================
--- branches/gsoc15-portfile/github2port/github2port	2015-06-19 14:38:22 UTC (rev 137779)
+++ branches/gsoc15-portfile/github2port/github2port	2015-06-19 14:40:07 UTC (rev 137780)
@@ -74,7 +74,7 @@
 proc parse_json {query} {
     global json
     set tmp [exec jq $query $json]
-    set tmp [string range $tmp 1 [expr [string length $tmp] - 2]]
+    set tmp [string range $tmp 1 end-1]
 
     if {[expr {[string length $tmp] > 0}]} {
         return $tmp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150619/c8a62dc6/attachment.html>


More information about the macports-changes mailing list