[124048] trunk/base/src/macports1.0/doctor.tcl

ksammons at macports.org ksammons at macports.org
Sun Aug 17 12:26:20 PDT 2014


Revision: 124048
          https://trac.macports.org/changeset/124048
Author:   ksammons at macports.org
Date:     2014-08-17 12:26:19 -0700 (Sun, 17 Aug 2014)
Log Message:
-----------
Fixed a false positive being thrown with symlinks

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

Modified: trunk/base/src/macports1.0/doctor.tcl
===================================================================
--- trunk/base/src/macports1.0/doctor.tcl	2014-08-17 19:09:55 UTC (rev 124047)
+++ trunk/base/src/macports1.0/doctor.tcl	2014-08-17 19:26:19 UTC (rev 124048)
@@ -381,7 +381,9 @@
                             success_fail 0
                         }
 
-                        ui_warn "couldn't find file '$file' for port '$name'. Please deactivate and reactivate the port to fix this issue."
+                        if {[catch {file lstat $file _}]} {
+                            ui_warn "couldn't find file '$file' for port '$name'. Please deactivate and reactivate the port to fix this issue."
+                        }
                     } elseif {![file readable $file]} {
                         if {$fancyOutput} {
                             $progress intermission
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140817/ba0583b9/attachment.html>


More information about the macports-changes mailing list