Changeset 77681


Ignore:
Timestamp:
Apr 9, 2011, 1:21:06 AM (10 years ago)
Author:
jmr@…
Message:

disable use of flat registry

Location:
trunk/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/doc/macports.conf.in

    r77511 r77681  
    1010# Where to store MacPorts working data
    1111portdbpath              @localstatedir_expanded@/macports
    12 
    13 # Type of storage to use for the port registry information, "flat" or "sqlite"
    14 # default is sqlite, flat is legacy
    15 #portdbformat           sqlite
    1612
    1713# PATH settings that are used for external tools (configure, make, etc.) while installing ports. The default
  • trunk/base/src/macports1.0/macports.tcl

    r77511 r77681  
    642642    set registry.path $portdbpath
    643643
    644     # Format for receipts, can currently be either "flat" or "sqlite"
    645     if {[info exists portdbformat]} {
    646         if {$portdbformat == "flat" || $portdbformat == "sqlite"} {
    647             set registry.format receipt_${portdbformat}
    648         } else {
    649             return -code error "unknown registry format '$portdbformat' set in macports.conf"
    650         }
     644    # Format for receipts; currently only "sqlite" is allowed
     645    # could previously be "flat", so we switch that to sqlite
     646    if {![info exists portdbformat] || $portdbformat == "flat" || $portdbformat == "sqlite"} {
     647        set registry.format receipt_sqlite
    651648    } else {
    652         set registry.format receipt_sqlite
     649        return -code error "unknown registry format '$portdbformat' set in macports.conf"
    653650    }
    654651
Note: See TracChangeset for help on using the changeset viewer.