[Lunar-commits] <moonbase> git: use REPOSITORY-THRESHOLD instead of {CVS, SVN, GIT}-THRESHOLD (see ML)

Auke Kok sofar at foo-projects.org
Wed Apr 2 00:15:09 CEST 2008


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


More information about the Lunar-commits mailing list