[darwinbuild-changes] [324] trunk/darwinbuild/darwinbuild.common

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 4 02:02:42 PDT 2006


Revision: 324
          http://trac.macosforge.org/projects/darwinbuild/changeset/324
Author:   ssen
Date:     2006-10-04 02:02:42 -0700 (Wed, 04 Oct 2006)

Log Message:
-----------
allow user to provide curl options, like proxy settings or cookies

Modified Paths:
--------------
    trunk/darwinbuild/darwinbuild.common

Modified: trunk/darwinbuild/darwinbuild.common
===================================================================
--- trunk/darwinbuild/darwinbuild.common	2006-04-14 03:34:42 UTC (rev 323)
+++ trunk/darwinbuild/darwinbuild.common	2006-10-04 09:02:42 UTC (rev 324)
@@ -104,6 +104,8 @@
 	fi
 }
 
+CURLARGS=${CURLARGS:-}
+
 ###
 ### Download a .tar.gz file
 ###
@@ -127,7 +129,7 @@
 		if [ ! -f "$destination/$filename" ]; then
 			mkdir -p "$destination"
 			echo "Attempting to download $master_site/$filename ..."
-			curl --fail \
+			curl $CURLARGS --fail \
 				--silent \
 				--continue-at - \
 				--output "$destination/.tmp.${filename}" \

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/fe838390/attachment.html


More information about the darwinbuild-changes mailing list