Changes between Initial Version and Version 1 of Ticket #29523


Ignore:
Timestamp:
May 21, 2011, 12:13:30 PM (13 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

This seems like a valid complaint, and I have encountered this problem myself when I am especially quick about pressing Command-S in the editor, Command-Tab to return to the Terminal, Up Arrow to repeat the last "sudo port install" command, and Return to execute it, all in less than one second. Rainer, you added this check in r65246. Any reason not to change it as the reporter indicates?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29523

    • Property Cc ryandesign@… raimue@… added
    • Property Component changed from ports to base
  • Ticket #29523 – Description

    initial v1  
    33From http://svn.macports.org/repository/macports/trunk/base/src/port1.0/portutil.tcl :
    44
     5{{{
    56if {[file mtime ${portpath}/Portfile] >= [clock seconds]} {
    67    return -code error "Portfile is from the future - check date and time of your system"
    78}
     9}}}
    810
    911I'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.