[141176] trunk/base/src/port1.0/portchecksum.tcl
jeremyhu at macports.org
jeremyhu at macports.org
Sun Oct 11 11:51:13 PDT 2015
Revision: 141176
https://trac.macports.org/changeset/141176
Author: jeremyhu at macports.org
Date: 2015-10-11 11:51:13 -0700 (Sun, 11 Oct 2015)
Log Message:
-----------
Fix checksum line suggestion for ports with multiple distfiles
Modified Paths:
--------------
trunk/base/src/port1.0/portchecksum.tcl
Modified: trunk/base/src/port1.0/portchecksum.tcl
===================================================================
--- trunk/base/src/port1.0/portchecksum.tcl 2015-10-11 18:40:53 UTC (rev 141175)
+++ trunk/base/src/port1.0/portchecksum.tcl 2015-10-11 18:51:13 UTC (rev 141176)
@@ -328,6 +328,16 @@
lappend default_sums $distfile
}
+ # get the full path of the distfile.
+ set fullpath [file join $distpath $distfile]
+ if {![file isfile $fullpath]} {
+ if {!$usealtworkpath && [file isfile "${altprefix}${fullpath}"]} {
+ set fullpath "${altprefix}${fullpath}"
+ } else {
+ return -code error "$distfile does not exist in $distpath"
+ }
+ }
+
foreach type $default_checksum_types {
lappend default_sums [format "%-8s%s" $type [calc_$type $fullpath]]
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151011/184b27f9/attachment.html>
More information about the macports-changes
mailing list