[129720] trunk/base/src/macports1.0

raimue at macports.org raimue at macports.org
Fri Dec 19 01:39:47 PST 2014


Revision: 129720
          https://trac.macports.org/changeset/129720
Author:   raimue at macports.org
Date:     2014-12-19 01:39:47 -0800 (Fri, 19 Dec 2014)
Log Message:
-----------
Drop .txt extension on reclaim state file

Let's keep this consist with existing state files (pingtimes, stats-uuid).

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

Modified: trunk/base/src/macports1.0/reclaim.tcl
===================================================================
--- trunk/base/src/macports1.0/reclaim.tcl	2014-12-19 02:50:12 UTC (rev 129719)
+++ trunk/base/src/macports1.0/reclaim.tcl	2014-12-19 09:39:47 UTC (rev 129720)
@@ -317,7 +317,7 @@
 
         ui_debug "Updating last run information."
 
-        set path    [file join ${macports::portdbpath} last_reclaim.txt]
+        set path    [file join ${macports::portdbpath} last_reclaim]
         set fd      [open $path w]
         puts $fd    [clock seconds]
         close_file $fd
@@ -334,7 +334,7 @@
 
         ui_debug "Checking time since last reclaim run"
 
-        set path [file join ${macports::portdbpath} last_reclaim.txt]
+        set path [file join ${macports::portdbpath} last_reclaim]
 
         if {[file exists $path]} {
 

Modified: trunk/base/src/macports1.0/tests/reclaim.test
===================================================================
--- trunk/base/src/macports1.0/tests/reclaim.test	2014-12-19 02:50:12 UTC (rev 129719)
+++ trunk/base/src/macports1.0/tests/reclaim.test	2014-12-19 09:39:47 UTC (rev 129720)
@@ -51,14 +51,14 @@
     # Constraints:
     #               Requires root to run. 
 
-    Tests for last_reclaim.txt being updated.
+    Tests for last_reclaim file being updated.
 
 } -constraints {
     root
 
 } -body {
 
-    set path     [file join ${macports::portdbpath} last_reclaim.txt]
+    set path     [file join ${macports::portdbpath} last_reclaim]
 
     set fd          [open $path w]
     close $fd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141219/d16e8949/attachment-0001.html>


More information about the macports-changes mailing list