Changeset 83270
- Timestamp:
- 08/29/11 05:55:50 (4 years ago)
- Location:
- trunk/base/src
- Files:
-
- 2 edited
-
macports1.0/macports.tcl (modified) (1 diff)
-
port/port.tcl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/macports1.0/macports.tcl
r83267 r83270 964 964 _mports_load_quickindex 965 965 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 974 976 # init registry 975 977 set db_path [file join ${registry.path} registry registry.db] -
trunk/base/src/port/port.tcl
r82947 r83270 4681 4681 if { [llength $remaining_args] == 0 && ![info exists ui_options(ports_commandfiles)] } { 4682 4682 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 4683 4686 } 4684 4687
Note: See TracChangeset
for help on using the changeset viewer.

