Changeset 53707


Ignore:
Timestamp:
Jul 12, 2009, 1:56:36 PM (10 years ago)
Author:
jmr@…
Message:

In dry-run mode, skip deleting the workpath when the Portfile has changed (#19908)

File:
1 edited

Legend:

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

    r53376 r53707  
    15741574        }
    15751575        if {!([info exists ports_ignore_older] && $ports_ignore_older == "yes") && [file mtime $statefile] < [file mtime ${portpath}/Portfile]} {
    1576             ui_msg "Portfile changed since last build; discarding previous state."
    1577             #file delete $statefile
    1578             delete [file join $workpath]
    1579             file mkdir [file join $workpath]
     1576            if {!([info exists ports_dryrun] && $ports_dryrun == "yes")} {
     1577                ui_msg "Portfile changed since last build; discarding previous state."
     1578                delete [file join $workpath]
     1579                file mkdir [file join $workpath]
     1580            } else {
     1581                ui_msg "Portfile changed since last build but not discarding previous state (dry run)"
     1582            }
    15801583        }
    15811584    }
Note: See TracChangeset for help on using the changeset viewer.