[58336] trunk/dports/fuse/sshfs/Portfile
toby at macports.org
toby at macports.org
Sat Sep 26 14:21:09 PDT 2009
Revision: 58336
http://trac.macports.org/changeset/58336
Author: toby at macports.org
Date: 2009-09-26 14:21:09 -0700 (Sat, 26 Sep 2009)
Log Message:
-----------
remove unnecessary lunacy
Modified Paths:
--------------
trunk/dports/fuse/sshfs/Portfile
Modified: trunk/dports/fuse/sshfs/Portfile
===================================================================
--- trunk/dports/fuse/sshfs/Portfile 2009-09-26 21:20:09 UTC (rev 58335)
+++ trunk/dports/fuse/sshfs/Portfile 2009-09-26 21:21:09 UTC (rev 58336)
@@ -44,40 +44,3 @@
# override patch.pre_args since it defaults to -p0
patch.pre_args -p1
}
-
-pre-fetch {
- if {[variant_isset darwin]} {
- patch_checksum
- }
-}
-
-proc patch_checksum {} {
- global checksums_array UI_PREFIX
- # assume we only have one patchfile, because at the moment that's true
- set patchfile [option patchfiles]
- # do our own checksumming of an existing $patchfile because URL changes between revisions
- # if the checksum fails, delete the patchfile
- # a lot of this code is copied from checksum_main
- # Eventually this technique should be replaced with a patchfile dist subdir
- if {[file exists [option distpath]/$patchfile]} {
- ui_info "$UI_PREFIX $patchfile exists, checksumming to detect URL change"
- if {[parse_checksums [option checksums]] == "yes"} {
- ui_info "$UI_PREFIX [format [msgcat::mc "Checksumming %s"] $patchfile]"
- set fullpath [file join [option distpath] $patchfile]
- if {[info exists checksums_array($patchfile)]} {
- set checksums $checksums_array($patchfile)
-
- foreach {type sum} $checksums {
- set calculated_sum [calc_$type $fullpath]
- if {![string equal $sum $calculated_sum]} {
- ui_debug "Checksum mismatch for $patchfile"
- delete $fullpath
- break
- }
- }
- }
- } else {
- return -code error "Unable to parse checksum string"
- }
- }
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090926/48a1df1b/attachment.html>
More information about the macports-changes
mailing list