Changeset 45237


Ignore:
Timestamp:
Jan 11, 2009, 9:19:11 PM (9 years ago)
Author:
blb@…
Message:

Merge r45201 from trunk: Make a reasonable guess instead of hard failing when there is no [default] tag in sources.conf.

Location:
branches/release_1_7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/release_1_7

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

    r42751 r45237  
    437437    # contain _resources.
    438438    if {![info exists sources_default]} {
    439         return -code error "No default port source specified in $sources_conf"
     439        ui_warn "No default port source specified in $sources_conf, using last source as default"
     440        set sources_default [lindex $sources end]
    440441    }
    441442
Note: See TracChangeset for help on using the changeset viewer.