Changeset 141176 for trunk/base


Ignore:
Timestamp:
Oct 11, 2015, 6:51:13 PM (4 years ago)
Author:
jeremyhu@…
Message:

Fix checksum line suggestion for ports with multiple distfiles

File:
1 edited

Legend:

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

    r141139 r141176  
    329329                }
    330330
     331                # get the full path of the distfile.
     332                set fullpath [file join $distpath $distfile]
     333                if {![file isfile $fullpath]} {
     334                    if {!$usealtworkpath && [file isfile "${altprefix}${fullpath}"]} {
     335                        set fullpath "${altprefix}${fullpath}"
     336                    } else {
     337                        return -code error "$distfile does not exist in $distpath"
     338                    }
     339                }
     340
    331341                foreach type $default_checksum_types {
    332342                    lappend default_sums [format "%-8s%s" $type [calc_$type $fullpath]]
Note: See TracChangeset for help on using the changeset viewer.