[MacPorts] #29523: Strange definition of "future"

MacPorts noreply at macports.org
Fri May 20 14:49:09 PDT 2011


#29523: Strange definition of "future"
------------------------------------+---------------------------------------
 Reporter:  mattalbright@…          |       Owner:  macports-tickets@…                   
     Type:  defect                  |      Status:  new                                  
 Priority:  Normal                  |   Milestone:                                       
Component:  ports                   |     Version:  1.9.2                                
 Keywords:                          |        Port:                                       
------------------------------------+---------------------------------------
 Future: "You keep using that word. I do not think it means what you think
 it means."

 From
 http://svn.macports.org/repository/macports/trunk/base/src/port1.0/portutil.tcl
 :

 if {[file mtime ${portpath}/Portfile] >= [clock seconds]} {
     return -code error "Portfile is from the future - check date and time
 of your system"
 }

 I'm pretty sure "future" means mtime > now, not >=.  I'm syncing a
 Portfile from an RCS and building it in a script, and apparently my
 computer is too fast, cause it's getting this error about the future.

 Yes, a `sleep 1` works, but c'mon!  :-)

-- 
Ticket URL: <https://trac.macports.org/ticket/29523>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list