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

jmr at macports.org jmr at macports.org
Tue Aug 18 09:08:50 PDT 2009


Revision: 55767
          http://trac.macports.org/changeset/55767
Author:   jmr at macports.org
Date:     2009-08-18 09:08:48 -0700 (Tue, 18 Aug 2009)
Log Message:
-----------
bring back the code for selecting gnu or googlecode livecheck.type based on homepage

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

Modified: trunk/base/src/port1.0/portlivecheck.tcl
===================================================================
--- trunk/base/src/port1.0/portlivecheck.tcl	2009-08-18 16:03:37 UTC (rev 55766)
+++ trunk/base/src/port1.0/portlivecheck.tcl	2009-08-18 16:08:48 UTC (rev 55767)
@@ -121,6 +121,13 @@
         if {${livecheck.type} eq "default"} {
             set livecheck.type "fallback"
         }
+        if {$has_homepage} {
+            if {[regexp {^http://code.google.com/p/([^/]+)} $homepage _ tag]} {
+                set livecheck.type "googlecode"
+            } elseif {[regexp {^http://www.gnu.org/software/([^/]+)} $homepage _ tag]} {
+                set livecheck.type "gnu"
+            }
+        }
     }
     if {[lsearch -exact [split $available_types "|"] ${livecheck.type}] != -1} {
         # Load the defaults from _resources/port1.0/livecheck/${livecheck.type}.tcl.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090818/19451492/attachment.html>


More information about the macports-changes mailing list