[146701] trunk/base/src/macports1.0/reclaim.tcl

cal at macports.org cal at macports.org
Tue Mar 15 08:50:29 PDT 2016


Revision: 146701
          https://trac.macports.org/changeset/146701
Author:   cal at macports.org
Date:     2016-03-15 08:50:29 -0700 (Tue, 15 Mar 2016)
Log Message:
-----------
base: reclaim: Ignore errors in state checking

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

Modified: trunk/base/src/macports1.0/reclaim.tcl
===================================================================
--- trunk/base/src/macports1.0/reclaim.tcl	2016-03-15 15:45:16 UTC (rev 146700)
+++ trunk/base/src/macports1.0/reclaim.tcl	2016-03-15 15:50:29 UTC (rev 146701)
@@ -311,6 +311,8 @@
         try -pass_signal {
             set fd [open $path w]
             puts $fd [clock seconds]
+        } catch {*} {
+            # Ignore error silently
         } finally {
             if {$fd != -1} {
                 close $fd
@@ -336,6 +338,8 @@
         try -pass_signal {
             set fd [open $path r]
             set time [gets $fd]
+        } catch {*} {
+            # Ignore error silently; the file might not have been created yet
         } finally {
             if {$fd != -1} {
                 close $fd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160315/9ba6c8d0/attachment.html>


More information about the macports-changes mailing list