[55219] trunk/base/src/port1.0/portfetch.tcl

raimue at macports.org raimue at macports.org
Fri Aug 7 10:04:21 PDT 2009


Revision: 55219
          http://trac.macports.org/changeset/55219
Author:   raimue at macports.org
Date:     2009-08-07 10:04:19 -0700 (Fri, 07 Aug 2009)
Log Message:
-----------
port1.0/portfetch.tcl:
Old sourceforge hack did not work anymore as it seems the mirrors added another
redirect. Adjusting the wildcard match for the effective URL.

Modified Paths:
--------------
    trunk/base/src/port1.0/portfetch.tcl

Modified: trunk/base/src/port1.0/portfetch.tcl
===================================================================
--- trunk/base/src/port1.0/portfetch.tcl	2009-08-07 16:53:32 UTC (rev 55218)
+++ trunk/base/src/port1.0/portfetch.tcl	2009-08-07 17:04:19 UTC (rev 55219)
@@ -649,8 +649,8 @@
 
                     # Special hack to check for sourceforge mirrors, which don't return a proper error code on failure
                     if {![string equal $effectiveURL $file_url] &&
-                        [string match "*sourceforge*" $file_url] &&
-                        [string match "*failedmirror*" $effectiveURL]} {
+                        [string match "http://*sourceforge.net/*" $file_url] &&
+                        [string match "http://*sourceforge.net/projects/*/files/" $effectiveURL]} {
 
                         # *SourceForge hackage in effect*
                         # The url seen by curl seems to have been a redirect to the sourceforge mirror page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090807/2b92f685/attachment.html>


More information about the macports-changes mailing list