[73509] trunk/dports/_resources/port1.0/livecheck/sourceforge.tcl

jmr at macports.org jmr at macports.org
Mon Nov 15 22:41:39 PST 2010


Revision: 73509
          http://trac.macports.org/changeset/73509
Author:   jmr at macports.org
Date:     2010-11-15 22:41:36 -0800 (Mon, 15 Nov 2010)
Log Message:
-----------
Update sourceforge livecheck to use new rss location. If you can figure out how to make this behave more like it did before, please do.

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/livecheck/sourceforge.tcl

Modified: trunk/dports/_resources/port1.0/livecheck/sourceforge.tcl
===================================================================
--- trunk/dports/_resources/port1.0/livecheck/sourceforge.tcl	2010-11-16 04:59:01 UTC (rev 73508)
+++ trunk/dports/_resources/port1.0/livecheck/sourceforge.tcl	2010-11-16 06:41:36 UTC (rev 73509)
@@ -12,12 +12,12 @@
     }
 }
 if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
-    set livecheck.url "http://sourceforge.net/export/rss2_projfiles.php?project=${livecheck.name}"
+    set livecheck.url "http://sourceforge.net/api/file/index/project-name/${livecheck.name}/rss"
 }
 if {${livecheck.distname} eq "default"} {
     set livecheck.distname ${livecheck.name}
 }
 if {${livecheck.regex} eq ""} {
-    set livecheck.regex [list "(?i)<title>[quotemeta ${livecheck.distname}] (.*) released.*</title>"]
+    set livecheck.regex [list "/[quotemeta ${livecheck.distname}]/(\[a-zA-Z0-9.\]+\\.\[a-zA-Z0-9.\]+)/"]
 }
 set livecheck.type "regex"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101115/8681e1a0/attachment.html>


More information about the macports-changes mailing list