[95438] trunk/base/src/port1.0/portfetch.tcl

cal at macports.org cal at macports.org
Thu Jul 12 14:18:14 PDT 2012


Revision: 95438
          https://trac.macports.org/changeset/95438
Author:   cal at macports.org
Date:     2012-07-12 14:18:13 -0700 (Thu, 12 Jul 2012)
Log Message:
-----------
fetching from hg: quote hg.tag, since it may contain spaces, needed e.g. by Growl, see #22684

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

Modified: trunk/base/src/port1.0/portfetch.tcl
===================================================================
--- trunk/base/src/port1.0/portfetch.tcl	2012-07-12 20:14:09 UTC (rev 95437)
+++ trunk/base/src/port1.0/portfetch.tcl	2012-07-12 21:18:13 UTC (rev 95438)
@@ -403,7 +403,7 @@
         set insecureflag " --insecure"
     }
 
-    set cmdstring "${hg.cmd} clone${insecureflag} --rev ${hg.tag} ${hg.url} ${worksrcpath} 2>&1"
+    set cmdstring "${hg.cmd} clone${insecureflag} --rev \"[string map ${hg.tag} {\\ \\\\ \" \\\"}]\" ${hg.url} ${worksrcpath} 2>&1"
     ui_debug "Executing: $cmdstring"
     if {[catch {system $cmdstring} result]} {
         return -code error [msgcat::mc "Mercurial clone failed"]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120712/69ea0fa2/attachment.html>


More information about the macports-changes mailing list