New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 83270


Ignore:
Timestamp:
08/29/11 05:55:50 (4 years ago)
Author:
jmr@…
Message:

don't warn about old ports tree if running selfupdate or sync (#23094)

Location:
trunk/base/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/macports1.0/macports.tcl

    r83267 r83270  
    964964    _mports_load_quickindex 
    965965 
    966     set default_source_url [lindex ${sources_default} 0] 
    967     if {[macports::getprotocol $default_source_url] == "file" || [macports::getprotocol $default_source_url] == "rsync"} { 
    968         set default_portindex [macports::getindex $default_source_url] 
    969         if {[file exists $default_portindex] && [expr [clock seconds] - [file mtime $default_portindex]] > 1209600} { 
    970             ui_warn "port definitions are more than two weeks old, consider using selfupdate" 
    971         } 
    972     } 
    973      
     966    if {![info exists macports::ui_options(ports_no_old_index_warning)]} { 
     967        set default_source_url [lindex ${sources_default} 0] 
     968        if {[macports::getprotocol $default_source_url] == "file" || [macports::getprotocol $default_source_url] == "rsync"} { 
     969            set default_portindex [macports::getindex $default_source_url] 
     970            if {[file exists $default_portindex] && [expr [clock seconds] - [file mtime $default_portindex]] > 1209600} { 
     971                ui_warn "port definitions are more than two weeks old, consider using selfupdate" 
     972            } 
     973        } 
     974    } 
     975 
    974976    # init registry 
    975977    set db_path [file join ${registry.path} registry registry.db] 
  • trunk/base/src/port/port.tcl

    r82947 r83270  
    46814681if { [llength $remaining_args] == 0 && ![info exists ui_options(ports_commandfiles)] } { 
    46824682    lappend ui_options(ports_commandfiles) - 
     4683} elseif {[lookahead] == "selfupdate" || [lookahead] == "sync"} { 
     4684    # tell mportinit not to tell the user they should selfupdate 
     4685    set ui_options(ports_no_old_index_warning) 1 
    46834686} 
    46844687 
Note: See TracChangeset for help on using the changeset viewer.