[101265] branches/release_2_1
jmr at macports.org
jmr at macports.org
Mon Jan 7 06:00:08 PST 2013
Revision: 101265
https://trac.macports.org/changeset/101265
Author: jmr at macports.org
Date: 2013-01-07 06:00:08 -0800 (Mon, 07 Jan 2013)
Log Message:
-----------
merge r99754 from trunk:
rename HTML files with bad checksums with a .html extension for easy opening, and print the path
Revision Links:
--------------
https://trac.macports.org/changeset/99754
Modified Paths:
--------------
branches/release_2_1/base/src/port1.0/portchecksum.tcl
Property Changed:
----------------
branches/release_2_1/
branches/release_2_1/base/
Property changes on: branches/release_2_1
___________________________________________________________________
Modified: svn:mergeinfo
- /trunk:91825,91829,91834,92072,92342,92404,92546,92730,92785,92881,92903,92976,93062,93153,93197,93250,93258-93259,93261,93268,93274,93303,93339,93511-93512,93816,93962,95382,95438-95439,95480,95552,95616,95620,95873,96262,96535,97264,97367,97999,98190,98313,99275
+ /trunk:91825,91829,91834,92072,92342,92404,92546,92730,92785,92881,92903,92976,93062,93153,93197,93250,93258-93259,93261,93268,93274,93303,93339,93511-93512,93816,93962,95382,95438-95439,95480,95552,95616,95620,95873,96262,96535,97264,97367,97999,98190,98313,99275,99754
Property changes on: branches/release_2_1/base
___________________________________________________________________
Modified: svn:mergeinfo
- /branches/gsoc08-privileges/base:37343-46937
/branches/gsoc09-logging/base:51231-60371
/branches/gsoc11-rev-upgrade/base:78828-88375
/branches/universal-sanity/base:51872-52323
/branches/variant-descs-14482/base:34469-34855,34900-37508,37511-37512,41040-41463,42575-42626,42640-42659
/trunk/base:91825,91829,91834,92072,92342,92404,92546,92730,92785,92881,92903,92976,93062,93129,93153,93197,93250,93256,93258-93259,93261,93268,93274,93303,93339,93511-93512,93816,93962,95382,95438-95439,95480,95552,95616,95620,95873,96136-96137,96262,96399-96401,96535,96538-96539,97264,97367,97868-97869,97999,98190,98313,99275,100129,100217-100220
/users/perry/base-bugs_and_notes:45682-46060
/users/perry/base-select:44044-44692
+ /branches/gsoc08-privileges/base:37343-46937
/branches/gsoc09-logging/base:51231-60371
/branches/gsoc11-rev-upgrade/base:78828-88375
/branches/universal-sanity/base:51872-52323
/branches/variant-descs-14482/base:34469-34855,34900-37508,37511-37512,41040-41463,42575-42626,42640-42659
/trunk/base:91825,91829,91834,92072,92342,92404,92546,92730,92785,92881,92903,92976,93062,93129,93153,93197,93250,93256,93258-93259,93261,93268,93274,93303,93339,93511-93512,93816,93962,95382,95438-95439,95480,95552,95616,95620,95873,96136-96137,96262,96399-96401,96535,96538-96539,97264,97367,97868-97869,97999,98190,98313,99275,99754,100129,100217-100220
/users/perry/base-bugs_and_notes:45682-46060
/users/perry/base-select:44044-44692
Modified: branches/release_2_1/base/src/port1.0/portchecksum.tcl
===================================================================
--- branches/release_2_1/base/src/port1.0/portchecksum.tcl 2013-01-07 13:57:09 UTC (rev 101264)
+++ branches/release_2_1/base/src/port1.0/portchecksum.tcl 2013-01-07 14:00:08 UTC (rev 101265)
@@ -280,6 +280,8 @@
&& "text/html" == $mimetype} {
# file --mime-type would be preferable to file --mime and strsed, but is only available as of Snow Leopard
set wrong_mimetype yes
+ set htmlfile_path ${fullpath}.html
+ file rename -force $fullpath $htmlfile_path
}
}
@@ -291,10 +293,6 @@
if {[tbool fail]} {
- # Show the desired checksum line for easy cut-paste
- ui_info "The correct checksum line may be:"
- ui_info [format "%-20s%s" "checksums" [join $sums [format " \\\n%-20s" ""]]]
-
if {[tbool wrong_mimetype]} {
# We got an HTML file, though the distfile name does not suggest that one was
# expected. Probably a helpful DNS server sent us to its search results page
@@ -305,6 +303,11 @@
ui_notice "for the checksum mismatch:"
ui_notice "<https://trac.macports.org/wiki/MisbehavingServers>"
ui_notice "***"
+ ui_notice "The file has been moved to: $htmlfile_path"
+ } else {
+ # Show the desired checksum line for easy cut-paste
+ ui_info "The correct checksum line may be:"
+ ui_info [format "%-20s%s" "checksums" [join $sums [format " \\\n%-20s" ""]]]
}
return -code error "[msgcat::mc "Unable to verify file checksums"]"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130107/ce87f64c/attachment-0001.html>
More information about the macports-changes
mailing list