[65424] trunk/base/src/registry2.0/registry.tcl

raimue at macports.org raimue at macports.org
Thu Mar 25 18:51:48 PDT 2010


Revision: 65424
          http://trac.macports.org/changeset/65424
Author:   raimue at macports.org
Date:     2010-03-25 18:51:47 -0700 (Thu, 25 Mar 2010)
Log Message:
-----------
registry2.0: [clock seconds] is always a unix timestamp

Modified Paths:
--------------
    trunk/base/src/registry2.0/registry.tcl

Modified: trunk/base/src/registry2.0/registry.tcl
===================================================================
--- trunk/base/src/registry2.0/registry.tcl	2010-03-26 01:43:47 UTC (rev 65423)
+++ trunk/base/src/registry2.0/registry.tcl	2010-03-26 01:51:47 UTC (rev 65424)
@@ -57,9 +57,7 @@
 		property_store $ref revision $revision
 		property_store $ref variants $variants
 		property_store $ref epoch $epoch
-		# Trick to have a portable GMT-POSIX epoch-based time.
-		# (because we'll compare this with a file mtime).
-		property_store $ref date [expr [clock scan now -gmt true] - [clock scan "1970-1-1 00:00:00" -gmt true]]
+		property_store $ref date [clock seconds]
 		property_store $ref installtype ${macports::registry.installtype}
 		property_store $ref receipt_f ${macports::registry.format}
 		if { ${macports::registry.installtype} == "image" } {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100325/4852104b/attachment.html>


More information about the macports-changes mailing list