[65246] trunk/base/src/port1.0/portutil.tcl
raimue at macports.org
raimue at macports.org
Wed Mar 24 10:19:12 PDT 2010
Revision: 65246
http://trac.macports.org/changeset/65246
Author: raimue at macports.org
Date: 2010-03-24 10:19:11 -0700 (Wed, 24 Mar 2010)
Log Message:
-----------
port1.0/portutil.tcl:
Error out if Portfile has modifcation time in the future
Modified Paths:
--------------
trunk/base/src/port1.0/portutil.tcl
Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl 2010-03-24 16:59:52 UTC (rev 65245)
+++ trunk/base/src/port1.0/portutil.tcl 2010-03-24 17:19:11 UTC (rev 65246)
@@ -1561,6 +1561,9 @@
if {![file writable $statefile]} {
return -code error "$statefile is not writable - check permission on port directory"
}
+ if {[file mtime ${portpath}/Portfile] >= [clock seconds]} {
+ return -code error "Portfile is from the future - check date and time of your system"
+ }
if {!([info exists ports_ignore_older] && $ports_ignore_older == "yes") && [file mtime $statefile] < [file mtime ${portpath}/Portfile]} {
if {!([info exists ports_dryrun] && $ports_dryrun == "yes")} {
ui_msg "Portfile changed since last build; discarding previous state."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100324/b57fc7cf/attachment.html>
More information about the macports-changes
mailing list