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

Auke Kok sofar at lunar-linux.org
Sat Apr 2 15:43:49 UTC 2005


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory espresso.foo-projects.org:/tmp/cvs-serv9947/var/lib/lunar/functions

Modified Files:
	download.lunar 
Log Message:
Rather elegant and simple fix for CVS/SVN/etc NEED_REFRESH checks: only check ${URLS[0]} for this, the rest would be nonsense anyway.


Index: download.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/download.lunar,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- download.lunar	2 Apr 2005 10:27:02 -0000	1.56
+++ download.lunar	2 Apr 2005 15:43:46 -0000	1.57
@@ -86,7 +86,7 @@
 			fi
 		}
 
-		if [ ! -f $SOURCE_CACHE/$SRC ] || plugin_call SOURCE_NEEDREFRESH $URL $SOURCE_CACHE/$SRC ; then
+		if plugin_call SOURCE_NEEDREFRESH ${URLS[0]} $SOURCE_CACHE/$SRC || [ ! -f $SOURCE_CACHE/$SRC ] ; then
 			# check for cache?
 			message "${MESSAGE_COLOR}Downloading source file" \
 				"${FILE_COLOR}$SRC${DEFAULT_COLOR}" \



More information about the Lunar-commits mailing list