[Lunar-commits] r15601 - lunar/trunk/var/lib/lunar/functions

Steven Michalske hardkrash at lunar-linux.org
Tue Jul 5 20:59:53 UTC 2005


Author: hardkrash
Date: 2005-07-05 20:59:52 +0000 (Tue, 05 Jul 2005)
New Revision: 15601

Modified:
   lunar/trunk/var/lib/lunar/functions/download.lunar
Log:
Sofar mentioned that i forgot about :// as being correct

So we now have a more robust sed statment that filters even the worst /// out of the URL :-P


Modified: lunar/trunk/var/lib/lunar/functions/download.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/download.lunar	2005-07-05 19:14:11 UTC (rev 15600)
+++ lunar/trunk/var/lib/lunar/functions/download.lunar	2005-07-05 20:59:52 UTC (rev 15601)
@@ -61,8 +61,8 @@
 	# loop over all sources
 	for (( N = 0 ; N < MAX_SOURCES ; N++ )) ; do
 		# get the URL part
-		eval SRC=\$$(echo SOURCE$N | sed s/SOURCE0/SOURCE/ | sed ://:/:g )
-		eval URLS=\${$(echo SOURCE${N}_URL | sed s/SOURCE0/SOURCE/ | sed ://:/:g )[@]}
+		eval SRC=\$$(echo SOURCE$N | sed s/SOURCE0/SOURCE/ | sed s:\([^:]/\)/*:\1:g )
+		eval URLS=\${$(echo SOURCE${N}_URL | sed s/SOURCE0/SOURCE/ | sed s:\([^:]/\)/*:\1:g )[@]}
 
 		# continue (to next) if empty once, break if empty tiwce
 		if [ -z "$SRC" ] ; then



More information about the Lunar-commits mailing list