public
Description: Git mirror of the MacPorts svn repo
Homepage: http://www.macports.org
Clone URL: git://github.com/kballard/macports.git
Remove some redundant code in mportinit


git-svn-id: http://svn.macports.org/repository/macports/trunk@37780 
d073be05-634f-4543-b044-5fe20cf6d1d6
kballard (author)
Mon Jun 23 00:00:08 -0700 2008
commit  3156f3dbfbec34f50e28a74a5099c05a0054ae58
tree    4c739ac798ef71072e7f73624286b67edfb63c34
parent  53293670a1efad573c0aca20800163ff55afa1ab
...
456
457
458
 
 
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
...
456
457
458
459
460
461
462
 
 
 
463
464
 
 
 
 
 
 
 
 
 
 
465
466
467
0
@@ -456,23 +456,12 @@ proc mportinit {{up_ui_options {}} {up_options {}} {up_variations {}}} {
0
             if {[catch {file mkdir $portdbpath} result]} {
0
                 return -code error "portdbpath $portdbpath does not exist and could not be created: $result"
0
             }
0
+ } else {
0
+ return -code error "$portdbpath is not a directory. Please create the directory $portdbpath and try again"
0
         }
0
     }
0
- if {![file isdirectory $portdbpath]} {
0
- return -code error "$portdbpath is not a directory. Please create the directory $portdbpath and try again"
0
- }
0
 
0
     set registry.path $portdbpath
0
- if {![file isdirectory ${registry.path}]} {
0
- if {![file exists ${registry.path}]} {
0
- if {[catch {file mkdir ${registry.path}} result]} {
0
- return -code error "portdbpath ${registry.path} does not exist and could not be created: $result"
0
- }
0
- }
0
- }
0
- if {![file isdirectory ${macports::registry.path}]} {
0
- return -code error "${macports::registry.path} is not a directory. Please create the directory $portdbpath and try again"
0
- }
0
 
0
     # Format for receipts, can currently be either "flat" or "sqlite"
0
     if {[info exists portdbformat]} {

Comments

    No one has commented yet.