[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[patch] Enable proxy-caching for curl



Hi,

I have attached a small patch which prevents 'curl' from sending a
'Pragma: no-cache' header. With this patch, subsequent 'make clean &&
make i386' will download the tarballs only once.



Enrico
Index: common/Makefile.common
===================================================================
RCS file: /cvs/extras/common/Makefile.common,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile.common
--- common/Makefile.common	24 Nov 2004 02:17:31 -0000	1.4
+++ common/Makefile.common	15 Feb 2005 15:35:47 -0000
@@ -63,7 +63,7 @@ endif
 
 # We define CURL and WGET in a way that makes if possible to have them
 # overwritten from the module's Makefiles. Then CLIENT picks CURL, otherwise WGET
-CURL	?= $(shell if test -f /usr/bin/curl ; then echo "curl -O -R -S --fail --show-error" ; fi)
+CURL	?= $(shell if test -f /usr/bin/curl ; then echo "curl -H Pragma: -O -R -S --fail --show-error" ; fi)
 WGET	?= $(shell if test -f /usr/bin/wget ; then echo "wget -nd -m" ; fi)
 CLIENT	?= $(if $(CURL),$(CURL),$(if $(WGET),$(WGET)))
 

Attachment: pgp00045.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]