[126059] trunk/dports/_resources/port1.0/group/bitbucket-1.0.tcl
sean at macports.org
sean at macports.org
Thu Oct 2 19:16:44 PDT 2014
Revision: 126059
https://trac.macports.org/changeset/126059
Author: sean at macports.org
Date: 2014-10-02 19:16:44 -0700 (Thu, 02 Oct 2014)
Log Message:
-----------
bitbucket: add proc to only livecheck a certain branch
Modified Paths:
--------------
trunk/dports/_resources/port1.0/group/bitbucket-1.0.tcl
Modified: trunk/dports/_resources/port1.0/group/bitbucket-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/bitbucket-1.0.tcl 2014-10-03 01:38:30 UTC (rev 126058)
+++ trunk/dports/_resources/port1.0/group/bitbucket-1.0.tcl 2014-10-03 02:16:44 UTC (rev 126059)
@@ -39,6 +39,7 @@
options bitbucket.author bitbucket.project bitbucket.version bitbucket.tag_prefix
options bitbucket.homepage bitbucket.master_sites bitbucket.tarball_from
+options bitbucket.livecheck_branch
default bitbucket.homepage {https://bitbucket.org/${bitbucket.author}/${bitbucket.project}}
default bitbucket.master_sites {${bitbucket.homepage}/get}
@@ -112,3 +113,13 @@
default livecheck.version {${bitbucket.version}}
}
+# proc that sets the livecheck to only check a branch instead of the newest
+# commits (meant to be used when the version is a hash); to be called *after*
+# bitbucket.setup
+proc bitbucket.livecheck {bb_branch} {
+ global bitbucket.homepage bitbucket.author bitbucket.project bitbucket.version
+
+ livecheck.url ${bitbucket.homepage}/commits/branch/${bb_branch}
+ livecheck.type regexm
+ livecheck.regex <a class="hash execute" href="/${bitbucket.author}/${bitbucket.project}/commits/(\[0-9a-f\]{[string length ${bitbucket.version}]}).*"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141002/3ddbadad/attachment.html>
More information about the macports-changes
mailing list