[55768] branches/release_1_8
jmr at macports.org
jmr at macports.org
Tue Aug 18 09:13:00 PDT 2009
Revision: 55768
http://trac.macports.org/changeset/55768
Author: jmr at macports.org
Date: 2009-08-18 09:12:58 -0700 (Tue, 18 Aug 2009)
Log Message:
-----------
merge r55767 from trunk:
bring back the code for selecting gnu or googlecode livecheck.type based on homepage
Revision Links:
--------------
http://trac.macports.org/changeset/55767
Modified Paths:
--------------
branches/release_1_8/base/src/port1.0/portlivecheck.tcl
Property Changed:
----------------
branches/release_1_8/
branches/release_1_8/base/
Property changes on: branches/release_1_8
___________________________________________________________________
Modified: svn:mergeinfo
- /trunk:55268,55279,55281,55285,55317,55385,55417,55591,55594,55679
+ /trunk:55268,55279,55281,55285,55317,55385,55417,55591,55594,55679,55767
Property changes on: branches/release_1_8/base
___________________________________________________________________
Modified: svn:mergeinfo
- /branches/gsoc08-privileges/base:37343-46937
/branches/universal-sanity/base:51872-52323
/branches/variant-descs-14482/base:34469-34855,34900-37508,37511-37512,41040-41463,42575-42626,42640-42659
/trunk/base:55268,55279,55281,55285,55317,55385,55417,55591,55594,55679
/users/perry/base-bugs_and_notes:45682-46060
/users/perry/base-select:44044-44692
+ /branches/gsoc08-privileges/base:37343-46937
/branches/universal-sanity/base:51872-52323
/branches/variant-descs-14482/base:34469-34855,34900-37508,37511-37512,41040-41463,42575-42626,42640-42659
/trunk/base:55268,55279,55281,55285,55317,55385,55417,55591,55594,55679,55767
/users/perry/base-bugs_and_notes:45682-46060
/users/perry/base-select:44044-44692
Modified: branches/release_1_8/base/src/port1.0/portlivecheck.tcl
===================================================================
--- branches/release_1_8/base/src/port1.0/portlivecheck.tcl 2009-08-18 16:08:48 UTC (rev 55767)
+++ branches/release_1_8/base/src/port1.0/portlivecheck.tcl 2009-08-18 16:12:58 UTC (rev 55768)
@@ -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/afe73b95/attachment.html>
More information about the macports-changes
mailing list