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

jmr at macports.org jmr at macports.org
Tue Oct 23 16:51:22 PDT 2012


Revision: 99019
          http://trac.macports.org//changeset/99019
Author:   jmr at macports.org
Date:     2012-10-23 16:51:22 -0700 (Tue, 23 Oct 2012)
Log Message:
-----------
fix proxy hostname matching

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

Modified: trunk/base/src/port1.0/portfetch.tcl
===================================================================
--- trunk/base/src/port1.0/portfetch.tcl	2012-10-23 21:45:40 UTC (rev 99018)
+++ trunk/base/src/port1.0/portfetch.tcl	2012-10-23 23:51:22 UTC (rev 99019)
@@ -383,7 +383,7 @@
     } else {
         return ""
     }
-    regexp {(.*://)?(\w+)(:(\d+))?} $proxy_str - - proxy_host - proxy_port
+    regexp {(.*://)?([[:alnum:].-]+)(:(\d+))?} $proxy_str - - proxy_host - proxy_port
     set ret "--config-option servers:global:http-proxy-host=${proxy_host}"
     if {$proxy_port != ""} {
         append ret " --config-option servers:global:http-proxy-port=${proxy_port}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121023/0ac0ea63/attachment.html>


More information about the macports-changes mailing list