Skip to content

Commit

Permalink
disable use of flat registry
Browse files Browse the repository at this point in the history
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 c7f368a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
4 changes: 0 additions & 4 deletions doc/macports.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 5 additions & 8 deletions src/macports1.0/macports.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c7f368a

Please sign in to comment.