[81832] trunk/base/src/macports1.0/macports.tcl

jmr at macports.org jmr at macports.org
Fri Aug 5 10:47:39 PDT 2011


Revision: 81832
          http://trac.macports.org/changeset/81832
Author:   jmr at macports.org
Date:     2011-08-05 10:47:38 -0700 (Fri, 05 Aug 2011)
Log Message:
-----------
need to eval the command line after all

Modified Paths:
--------------
    trunk/base/src/macports1.0/macports.tcl

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2011-08-05 17:35:41 UTC (rev 81831)
+++ trunk/base/src/macports1.0/macports.tcl	2011-08-05 17:47:38 UTC (rev 81832)
@@ -1184,9 +1184,9 @@
     set tarcmd [findBinary tar $macports::autoconf::tar_path]
     set tarflags [get_tar_flags [file extension $fetchfile]]
     set qflag ${macports::autoconf::tar_q}
-    set cmdline "$tarcmd ${tarflags}${qflag}xOf '$fetchfile' +CONTENTS"
+    set cmdline "$tarcmd ${tarflags}${qflag}xOf \"$fetchfile\" +CONTENTS"
     ui_debug "$cmdline"
-    if {![catch {set contents [exec $cmdline]}]} {
+    if {![catch {set contents [eval exec $cmdline]}]} {
         set binary 1
         ui_debug "getting port name from binary archive"
         # get the portname from the contents file
@@ -1207,9 +1207,9 @@
     # extract the portfile (and possibly files dir if not a binary archive)
     ui_debug "extracting port archive to [pwd]"
     if {$binary} {
-        set cmdline "$tarcmd ${tarflags}${qflag}xOf {$fetchfile} +PORTFILE > Portfile"
+        set cmdline "$tarcmd ${tarflags}${qflag}xOf \"$fetchfile\" +PORTFILE > Portfile"
     } else {
-        set cmdline "$tarcmd ${tarflags}xf {$fetchfile}"
+        set cmdline "$tarcmd ${tarflags}xf \"$fetchfile\""
     }
     ui_debug "$cmdline"
     if {[catch {eval exec $cmdline} result]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110805/769fb2a2/attachment.html>


More information about the macports-changes mailing list