Ignore:
Timestamp:
Aug 29, 2011, 12:55:50 PM (6 years ago)
Author:
jmr@…
Message:

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

File:
1 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]
Note: See TracChangeset for help on using the changeset viewer.