New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 83394


Ignore:
Timestamp:
08/31/11 00:41:29 (4 years ago)
Author:
jmr@…
Message:

merge r83270, r83391 from trunk:

suppress messages saying to selfupdate when selfupdating (#23094)

Location:
branches/release_2_0
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • branches/release_2_0

  • branches/release_2_0/base

  • branches/release_2_0/base/Makefile.in

    r81566 r83394  
    8787        $(TCLSH) src/images_to_archives.tcl "${macports_tcl_dir}" 
    8888endif 
     89ifndef SELFUPDATING 
    8990        @echo ""; echo "Congratulations, you have successfully installed the MacPorts system. To get the Portfiles and update the system, add ${prefix}/bin to your PATH and run:"; echo "" 
    9091        @echo "sudo port -v selfupdate"; echo "" 
    9192        @echo "Please read \"man port\", the MacPorts guide at http://guide.macports.org/ and Wiki at https://trac.macports.org/ for full documentation."; echo "" 
     93else 
     94        @echo ""; echo "Congratulations, you have successfully upgraded the MacPorts system."; echo "" 
     95endif 
    9296 
    9397group:: 
  • branches/release_2_0/base/portmgr/fedora/macports.spec

  • branches/release_2_0/base/src/macports1.0/macports.tcl

    r83273 r83394  
    952952    _mports_load_quickindex 
    953953 
    954     set default_source_url [lindex ${sources_default} 0] 
    955     if {[macports::getprotocol $default_source_url] == "file" || [macports::getprotocol $default_source_url] == "rsync"} { 
    956         set default_portindex [macports::getindex $default_source_url] 
    957         if {[file exists $default_portindex] && [expr [clock seconds] - [file mtime $default_portindex]] > 1209600} { 
    958             ui_warn "port definitions are more than two weeks old, consider using selfupdate" 
    959         } 
    960     } 
    961      
     954    if {![info exists macports::ui_options(ports_no_old_index_warning)]} { 
     955        set default_source_url [lindex ${sources_default} 0] 
     956        if {[macports::getprotocol $default_source_url] == "file" || [macports::getprotocol $default_source_url] == "rsync"} { 
     957            set default_portindex [macports::getindex $default_source_url] 
     958            if {[file exists $default_portindex] && [expr [clock seconds] - [file mtime $default_portindex]] > 1209600} { 
     959                ui_warn "port definitions are more than two weeks old, consider using selfupdate" 
     960            } 
     961        } 
     962    } 
     963 
    962964    # init registry 
    963965    set db_path [file join ${registry.path} registry registry.db] 
     
    30783080            # do the actual configure, build and installation of new base 
    30793081            ui_msg "Installing new MacPorts release in $prefix as $owner:$group; permissions $perms; Tcl-Package in $tclpackage\n" 
    3080             if { [catch { system "cd $mp_source_path && ${cc_arg}./configure $configure_args && make && make install" } result] } { 
     3082            if { [catch { system "cd $mp_source_path && ${cc_arg}./configure $configure_args && make && make install SELFUPDATING=1" } result] } { 
    30813083                return -code error "Error installing new MacPorts base: $result" 
    30823084            } 
  • branches/release_2_0/base/src/pextlib1.0/sha2.c

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/release_2_0/base/src/pextlib1.0/sha2.h

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/release_2_0/base/src/pextlib1.0/sha256cmd.c

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/release_2_0/base/src/pextlib1.0/sha256cmd.h

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/release_2_0/base/src/port/port.tcl

    r83144 r83394  
    46794679if { [llength $remaining_args] == 0 && ![info exists ui_options(ports_commandfiles)] } { 
    46804680    lappend ui_options(ports_commandfiles) - 
     4681} elseif {[lookahead] == "selfupdate" || [lookahead] == "sync"} { 
     4682    # tell mportinit not to tell the user they should selfupdate 
     4683    set ui_options(ports_no_old_index_warning) 1 
    46814684} 
    46824685 
  • branches/release_2_0/base/src/registry2.0/receipt_sqlite.tcl

    • Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset for help on using the changeset viewer.