[Lunar-commits] CVS: theedge/var/lib/lunar/functions download.lunar, 1.40, 1.41

Auke Kok sofar at lunar-linux.org
Tue Mar 9 11:22:13 GMT 2004


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv31321/var/lib/lunar/functions

Modified Files:
	download.lunar 
Log Message:
The ultimate attempt to fix the double-download bug


Index: download.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/download.lunar,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- download.lunar	8 Mar 2004 22:57:03 -0000	1.40
+++ download.lunar	9 Mar 2004 11:22:11 -0000	1.41
@@ -398,13 +398,13 @@
       if [ -f "$(guess_filename $SOURCE_CACHE/$SRC)" ] ; then
         if [ "${URL:0:6}" == "cvs://" ] ; then
 	  verbose_msg "trying to download \"$URL\""
-	  get_url $URL $SOURCE_CACHE/$SRC
+	  get_url $URL $SOURCE_CACHE/$SRC && break
 	elif [ "${URL:0:6}" == "svn://" ] ; then
 	  verbose_msg "trying to download \"$URL\""
-	  get_url $URL $SOURCE_CACHE/$SRC
+	  get_url $URL $SOURCE_CACHE/$SRC && break
 	elif [ "${URL:0:6}" == "cpan://" ] ; then
 	  verbose_msg "trying to download \"$URL\""
-	  get_url $URL $SOURCE_CACHE/$SRC
+	  get_url $URL $SOURCE_CACHE/$SRC && break
 	else
 	  verbose_msg "Skipping download of \"$SRC\" for module \"$MODULE\" (in cache)"
 	  continue 2
@@ -415,7 +415,7 @@
                  "${MESSAGE_COLOR}for module"               \
                  "${MODULE_COLOR}${MODULE}${DEFAULT_COLOR}"
         verbose_msg "trying to download \"$URL\""
-	get_url $URL $SOURCE_CACHE/$SRC
+	get_url $URL $SOURCE_CACHE/$SRC && break
       fi
       
     done



More information about the Lunar-commits mailing list