[110115] trunk/base/src/port1.0/portutil.tcl

cal at macports.org cal at macports.org
Mon Aug 26 08:38:59 PDT 2013


Revision: 110115
          https://trac.macports.org/changeset/110115
Author:   cal at macports.org
Date:     2013-08-26 08:38:59 -0700 (Mon, 26 Aug 2013)
Log Message:
-----------
portutil: don't fail uninstalling packages because $oldpwd no longer exists.

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

Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl	2013-08-26 15:16:36 UTC (rev 110114)
+++ trunk/base/src/port1.0/portutil.tcl	2013-08-26 15:38:59 UTC (rev 110115)
@@ -1501,7 +1501,9 @@
                     # End of trace.
                     porttrace::trace_stop
                 }
-                _cd $oldpwd
+                # $oldpwd is deleted while uninstalling a port, changing back
+                # _will_ fail
+                catch {_cd $oldpwd}
             }
         }
         if {[exists copy_log_files]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130826/f78b976d/attachment-0001.html>


More information about the macports-changes mailing list