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

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


commit 2c31e279e92b5ed30a4b6f779c56924c7058ee42
Author: Christian Riggenbach <criggenbach at magahugu.net>
Date:   Wed Apr 2 00:15:06 2008 +0200

    subversion: 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 SVN-THRESHOLD.
---
 devel/subversion/plugin.d/download-svn.plugin |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/devel/subversion/plugin.d/download-svn.plugin b/devel/subversion/plugin.d/download-svn.plugin
index 4284814..4ab511b 100644
--- a/devel/subversion/plugin.d/download-svn.plugin
+++ b/devel/subversion/plugin.d/download-svn.plugin
@@ -99,13 +99,13 @@ plugin_source_needrefresh_svn() {
     return 0
   fi
 
-  SVN_THRESHOLD=${SVN_THRESHOLD:-10}
+  REPOSITORY_THRESHOLD=${REPOSITORY_THRESHOLD:-10}
   if (( "SVN_THRESHOLD" > 0 )) ; then
-    if [ "$(find $3/$2 -amin +$SVN_THRESHOLD)" == "$3/$2" ] ; then
+    if [ "$(find $3/$2 -amin +$REPOSITORY_THRESHOLD)" == "$3/$2" ] ; then
       # it is older:
       return 0
     else
-      message "${MESSAGE_COLOR}SVN update not required for \"${FILE_COLOR}$(basename $2)${DEFAULT_COLOR}${CYAN}\" (less than $SVN_THRESHOLD minutes old)${DEFAULT_COLOR}"
+      message "${MESSAGE_COLOR}SVN 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