New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79441


Ignore:
Timestamp:
06/13/11 06:19:58 (4 years ago)
Author:
jmr@…
Message:

print nothing in distfiles target for ports with no distfiles, rather than erroring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portdistfiles.tcl

    r78062 r79441  
    5454 
    5555proc portdistfiles::distfiles_main {args} { 
    56     global UI_PREFIX master_sites checksums_array portdbpath dist_subdir 
     56    global UI_PREFIX master_sites checksums_array portdbpath dist_subdir all_dist_files 
    5757     
    5858    # give up on ports that do not provide URLs 
     
    6464    set fetch_urls {} 
    6565    portfetch::checkfiles fetch_urls 
     66 
     67    # also give up on ports that don't have any distfiles 
     68    if {![info exists all_dist_files]} { 
     69        return 0 
     70    } 
    6671 
    6772    # get checksum data from the portfile and parse it 
Note: See TracChangeset for help on using the changeset viewer.