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

cal at macports.org cal at macports.org
Wed Mar 16 05:15:08 PDT 2016


Revision: 146733
          https://trac.macports.org/changeset/146733
Author:   cal at macports.org
Date:     2016-03-16 05:15:08 -0700 (Wed, 16 Mar 2016)
Log Message:
-----------
base: Fix bug introduced by try/catch refactoring

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

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2016-03-16 12:02:47 UTC (rev 146732)
+++ trunk/base/src/macports1.0/macports.tcl	2016-03-16 12:15:08 UTC (rev 146733)
@@ -3800,8 +3800,9 @@
     }
 
     # check if the port is in tree
+    set result ""
     try {
-        mportlookup $portname
+        set result [mportlookup $portname]
     } catch {{*} eCode eMessage} {
         global errorInfo
         ui_debug $errorInfo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160316/18134485/attachment.html>


More information about the macports-changes mailing list