[80779] trunk/base/src/port1.0/portlivecheck.tcl

jmr at macports.org jmr at macports.org
Sun Jul 17 06:18:31 PDT 2011


Revision: 80779
          http://trac.macports.org/changeset/80779
Author:   jmr at macports.org
Date:     2011-07-17 06:18:29 -0700 (Sun, 17 Jul 2011)
Log Message:
-----------
fix setting livecheck.name from sourceforge master_sites using the new layout

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

Modified: trunk/base/src/port1.0/portlivecheck.tcl
===================================================================
--- trunk/base/src/port1.0/portlivecheck.tcl	2011-07-17 05:58:27 UTC (rev 80778)
+++ trunk/base/src/port1.0/portlivecheck.tcl	2011-07-17 13:18:29 UTC (rev 80779)
@@ -101,6 +101,14 @@
         if {$has_master_sites} {
             foreach {master_site} ${master_sites} {
                 if {[regexp "^($available_types)(?::(\[^:\]+))?" ${master_site} _ site subdir]} {
+                    set subdirs [split $subdir /]
+                    if {[llength $subdirs] > 1} {
+                        if {[lindex $subdirs 0] == "project"} {
+                            set subdir [lindex $subdirs 1]
+                        } else {
+                            set subdir ""
+                        }
+                    }
                     if {${subdir} ne "" && ${livecheck.name} eq "default"} {
                         set livecheck.name ${subdir}
                     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110717/fad5c783/attachment.html>


More information about the macports-changes mailing list