Ignore:
Timestamp:
Jun 3, 2016, 9:14:38 AM (3 years ago)
Author:
raimue@…
Message:

portgroup pypi: Use json endpoint for livecheck

Closes #51463.

File:
1 edited

Legend:

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

    r137833 r149160  
    1212if {!$has_homepage || ${livecheck.url} eq ${homepage}} {
    1313    livecheck.url \
    14             https://pypi.python.org/pypi?:action=doap&name=${livecheck.name}
     14            https://pypi.python.org/pypi/${livecheck.name}/json
    1515}
    1616if {${livecheck.regex} eq ""} {
    17     livecheck.regex {<revision>(.+)</revision>}
     17    livecheck.regex {"version": "(.+)",}
    1818}
    1919set livecheck.type "regex"
Note: See TracChangeset for help on using the changeset viewer.