[Lunar-commits] <moonbase> git: use REPOSITORY-THRESHOLD instead of {CVS, SVN, GIT}-THRESHOLD (see ML)
Niki Guldbrand
niki at lunar-linux.org
Wed Apr 16 01:51:47 CEST 2008
Long time no see folks ;-)
Sorry for top posting, but i think i makes it easier, but i think there
is an error in the commit below:
- GIT_THRESHOLD=${GIT_THRESHOLD:-10}
+ REPOSITORY_THRESHOLD=${EPOSITORY_THRESHOLD:-10}
^
` I guess there is midding a 'R' here.
Best Regards
Niki Guldbrand
On Wed, 2008-04-02 at 00:15 +0200, Auke Kok wrote:
> commit 304ff7f0d26c52d389af6618ed0b8ea49d207555
> Author: Christian Riggenbach <criggenbach at magahugu.net>
> Date: Wed Apr 2 00:15:09 2008 +0200
>
> git: use REPOSITORY-THRESHOLD instead of {CVS,SVN,GIT}-THRESHOLD (see ML)
>
> together with the patch for download.menu in the maillist, this 'update'
> starts using the REPOSITORY-THRESHOLD variable instead of GIT-THRESHOLD.
> ---
> devel/git/plugin.d/download-git.plugin | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/devel/git/plugin.d/download-git.plugin b/devel/git/plugin.d/download-git.plugin
> index 7e48b41..b5713dd 100644
> --- a/devel/git/plugin.d/download-git.plugin
> +++ b/devel/git/plugin.d/download-git.plugin
> @@ -102,13 +102,13 @@ plugin_source_needrefresh_git() {
> return 0
> fi
>
> - GIT_THRESHOLD=${GIT_THRESHOLD:-10}
> + REPOSITORY_THRESHOLD=${EPOSITORY_THRESHOLD:-10}
> if (( "GIT_THRESHOLD" > 0 )) ; then
> - if [ "$(find $3/$2 -amin +$GIT_THRESHOLD)" == "$3/$2" ] ; then
> + if [ "$(find $3/$2 -amin +$REPOSITORY_THRESHOLD)" == "$3/$2" ] ; then
> # it is older:
> return 0
> else
> - message "${MESSAGE_COLOR}GIT update not required for \"${FILE_COLOR}$(basename $2)${DEFAULT_COLOR}${CYAN}\" (less than $GIT_THRESHOLD minutes old)${DEFAULT_COLOR}"
> + message "${MESSAGE_COLOR}GIT update not required for \"${FILE_COLOR}$(basename $2)${DEFAULT_COLOR}${CYAN}\" (less than $REPOSITORY_THRESHOLD minutes old)${DEFAULT_COLOR}"
> # now we can send a FAIL so the next plugins are skipped:
> return 1
> fi
> _______________________________________________
> Lunar-commits mailing list
> Lunar-commits at lunar-linux.org
> http://foo-projects.org/mailman/listinfo/lunar-commits
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part
Url : http://foo-projects.org/pipermail/lunar-dev/attachments/20080416/7de38eaa/attachment.bin
More information about the Lunar-dev
mailing list