Ticket #15395: patch-portfetch.tcl.diff

File patch-portfetch.tcl.diff, 851 bytes (added by wsiegrist@…, 16 years ago)

add primary category to distpath for better distfile/mirror layout

  • src/port1.0/portfetch.tcl

     
    624624
    625625# Initialize fetch target and call checkfiles.
    626626proc fetch_init {args} {
    627     global distfiles distname distpath all_dist_files dist_subdir fetch.type fetch_init_done
     627    global distfiles distname distpath all_dist_files dist_subdir fetch.type fetch_init_done categories
    628628   
    629629    if {[info exists distpath] && [info exists dist_subdir] && ![info exists fetch_init_done]} {
    630             set distpath ${distpath}/${dist_subdir}
    631             set fetch_init_done yes
     630        set primary_category [lindex $categories 0]
     631        set distpath ${distpath}/${primary_category}/${dist_subdir}
     632        set fetch_init_done yes
    632633    }
    633634    checkfiles
    634635}