Ignore:
Timestamp:
Mar 3, 2003, 7:17:03 AM (16 years ago)
Author:
kevin
Message:

Added -o option to ignore modification times on state file and Portfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portutil.tcl

    r2118 r2126  
    537537# open file to store name of completed targets
    538538proc open_statefile {args} {
    539     global workpath portname portpath
     539    global workpath portname portpath ports_ignore_older
    540540   
    541541    if ![file isdirectory $workpath ] {
     
    548548                        return -code error "$statefile is not writable - check permission on port directory"
    549549                }
    550                 if {[file mtime $statefile] < [file mtime ${portpath}/Portfile]} {
     550                if {!([info exists ports_ignore_older] && $ports_ignore_older == "yes") && [file mtime $statefile] < [file mtime ${portpath}/Portfile]} {
    551551                        ui_msg "Portfile changed since last build; discarding previous state."
    552552                        file delete $statefile
Note: See TracChangeset for help on using the changeset viewer.