Ignore:
Timestamp:
Oct 3, 2014, 2:16:44 AM (5 years ago)
Author:
sean@…
Message:

bitbucket: add proc to only livecheck a certain branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/bitbucket-1.0.tcl

    r125639 r126059  
    4040options bitbucket.author bitbucket.project bitbucket.version bitbucket.tag_prefix
    4141options bitbucket.homepage bitbucket.master_sites bitbucket.tarball_from
     42options bitbucket.livecheck_branch
    4243
    4344default bitbucket.homepage {https://bitbucket.org/${bitbucket.author}/${bitbucket.project}}
     
    113114}
    114115
     116# proc that sets the livecheck to only check a branch instead of the newest
     117# commits (meant to be used when the version is a hash); to be called *after*
     118# bitbucket.setup
     119proc bitbucket.livecheck {bb_branch} {
     120    global bitbucket.homepage bitbucket.author bitbucket.project bitbucket.version
     121
     122    livecheck.url       ${bitbucket.homepage}/commits/branch/${bb_branch}
     123    livecheck.type      regexm
     124    livecheck.regex     <a  class="hash execute" href="/${bitbucket.author}/${bitbucket.project}/commits/(\[0-9a-f\]{[string length ${bitbucket.version}]}).*"
     125}
Note: See TracChangeset for help on using the changeset viewer.