Skip to content
Permalink
Browse files

Remove some redundant code in mportinit

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@37780 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
lilyball committed Jun 23, 2008
1 parent daba6ba commit 1652e50aa5907d1c1c74148d1bdf40ea4c3acc8c
Showing with 2 additions and 13 deletions.
  1. +2 −13 src/macports1.0/macports.tcl
@@ -456,23 +456,12 @@ proc mportinit {{up_ui_options {}} {up_options {}} {up_variations {}}} {
if {[catch {file mkdir $portdbpath} result]} {
return -code error "portdbpath $portdbpath does not exist and could not be created: $result"
}
} else {
return -code error "$portdbpath is not a directory. Please create the directory $portdbpath and try again"
}
}
if {![file isdirectory $portdbpath]} {
return -code error "$portdbpath is not a directory. Please create the directory $portdbpath and try again"
}

set registry.path $portdbpath
if {![file isdirectory ${registry.path}]} {
if {![file exists ${registry.path}]} {
if {[catch {file mkdir ${registry.path}} result]} {
return -code error "portdbpath ${registry.path} does not exist and could not be created: $result"
}
}
}
if {![file isdirectory ${macports::registry.path}]} {
return -code error "${macports::registry.path} is not a directory. Please create the directory $portdbpath and try again"
}

# Format for receipts, can currently be either "flat" or "sqlite"
if {[info exists portdbformat]} {

0 comments on commit 1652e50

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