Ignore:
Timestamp:
Nov 16, 2010, 6:41:36 AM (9 years ago)
Author:
jmr@…
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/livecheck/sourceforge.tcl

    r52378 r73509  
    1313}
    1414if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
    15     set livecheck.url "http://sourceforge.net/export/rss2_projfiles.php?project=${livecheck.name}"
     15    set livecheck.url "http://sourceforge.net/api/file/index/project-name/${livecheck.name}/rss"
    1616}
    1717if {${livecheck.distname} eq "default"} {
     
    1919}
    2020if {${livecheck.regex} eq ""} {
    21     set livecheck.regex [list "(?i)<title>[quotemeta ${livecheck.distname}] (.*) released.*</title>"]
     21    set livecheck.regex [list "/[quotemeta ${livecheck.distname}]/(\[a-zA-Z0-9.\]+\\.\[a-zA-Z0-9.\]+)/"]
    2222}
    2323set livecheck.type "regex"
Note: See TracChangeset for help on using the changeset viewer.