CVS: theedge/var/lib/lunar/functions download.lunar,1.33,1.34
sofar at lunar-linux.org
sofar at lunar-linux.org
Sun Aug 31 18:51:11 GMT 2003
Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv17991/var/lib/lunar/functions
Modified Files:
download.lunar
Log Message:
Adding nl.lunar-linux.org to the mirror URL's, since it's rsynced hourly and can be used normally like the dk mirror. Also adding it to LRESORT as so we can drop the number of downloads from dbguin. Small fix for calls to LRESORT downloads, and starting to rephrase numeric statements to something that is unmistakenly numeric (( ... )).
Index: download.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/download.lunar,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- download.lunar 14 Aug 2003 19:41:38 -0000 1.33
+++ download.lunar 31 Aug 2003 18:51:09 -0000 1.34
@@ -282,7 +282,7 @@
if [ "${1:0:6}" == "cvs://" ] ; then
# cvs urls
CVS_THRESHOLD=${CVS_THRESHOLD:-10}
- if [ "$CVS_THRESHOLD" -gt 0 ] ; then
+ if (( "$CVS_THRESHOLD" > 0 )) ; then
if [ ! -f "$2" ] ; then
get_cvs $1 $2
elif [ "$(find $2 -amin +$CVS_THRESHOLD)" == "$2" ] ; then
@@ -296,7 +296,7 @@
elif [ "${1:0:6}" == "svn://" ] ; then
# svn urls
SVN_THRESHOLD=${SVN_THRESHOLD:-10}
- if [ "SVN_THRESHOLD" -gt 0 ] ; then
+ if (( "SVN_THRESHOLD" > 0 )) ; then
if [ ! -f "$2" ] ; then
get_svn $1 $2
elif [ "$(find $2 -amin +$SVN_THRESHOLD)" == "$2" ] ; then
@@ -323,14 +323,14 @@
else
# ordinary URL's handled by fuzzy_wget
if [ -n "$BASE_URL" ] ; then
- URL=$BASE_URL/$(basename 2)
+ URL=$BASE_URL/$(basename $2)
fi
connect &&
if [ -n "$BASE_URL" ] ; then
fuzzy_wget $BASE_URL/$(basename $2) $2
elif ! fuzzy_wget $1 $2 ; then
if [ -n "$LRESORT_URL" ] ; then
- fuzzy_wget $LRESORT_URL/$(basename 2) $2
+ fuzzy_wget $LRESORT_URL/$(basename $2) $2
fi
fi
fi
More information about the Lunar-commits
mailing list