Skip to content
Permalink
Browse files

disable use of flat registry

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@77681 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jmroot committed Apr 9, 2011
1 parent 209f8fe commit c7f368a796b69f88a124d7c3f4ad882d48bfabf2
Showing with 5 additions and 12 deletions.
  1. +0 −4 doc/macports.conf.in
  2. +5 −8 src/macports1.0/macports.tcl
@@ -10,10 +10,6 @@ prefix @prefix_expanded@
# Where to store MacPorts working data
portdbpath @localstatedir_expanded@/macports

# Type of storage to use for the port registry information, "flat" or "sqlite"
# default is sqlite, flat is legacy
#portdbformat sqlite

# PATH settings that are used for external tools (configure, make, etc.) while installing ports. The default
# paths are given in the example; it need not be uncommented. Customizing binpath is intended for advanced users only.
#binpath @prefix_expanded@/bin:@prefix_expanded@/sbin:/bin:/sbin:/usr/bin:/usr/sbin
@@ -641,15 +641,12 @@ proc mportinit {{up_ui_options {}} {up_options {}} {up_variations {}}} {

set registry.path $portdbpath

# Format for receipts, can currently be either "flat" or "sqlite"
if {[info exists portdbformat]} {
if {$portdbformat == "flat" || $portdbformat == "sqlite"} {
set registry.format receipt_${portdbformat}
} else {
return -code error "unknown registry format '$portdbformat' set in macports.conf"
}
} else {
# Format for receipts; currently only "sqlite" is allowed
# could previously be "flat", so we switch that to sqlite
if {![info exists portdbformat] || $portdbformat == "flat" || $portdbformat == "sqlite"} {
set registry.format receipt_sqlite
} else {
return -code error "unknown registry format '$portdbformat' set in macports.conf"
}

# Autoclean mode, whether to automatically call clean after "install"

0 comments on commit c7f368a

Please sign in to comment.
You can’t perform that action at this time.