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

jmr at macports.org jmr at macports.org
Sat Jul 30 20:39:06 PDT 2011


Revision: 81452
          http://trac.macports.org/changeset/81452
Author:   jmr at macports.org
Date:     2011-07-30 20:39:03 -0700 (Sat, 30 Jul 2011)
Log Message:
-----------
only try to fetch in getportdir if the url is in fact a file, not if it's e.g. an unreadable directory

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-07-31 02:59:44 UTC (rev 81451)
+++ trunk/base/src/macports1.0/macports.tcl	2011-07-31 03:39:03 UTC (rev 81452)
@@ -1227,7 +1227,7 @@
     switch ${protocol} {
         file {
             set path [file normalize [string range $url [expr [string length $protocol] + 3] end]]
-            if {[file isdirectory $path]} {
+            if {![file isfile $path]} {
                 return $path
             } else {
                 # need to create a local dir for the exracted port, but only once
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110730/4a214ab1/attachment.html>


More information about the macports-changes mailing list