[Fedora-directory-commits] dsbuild gar.lib.mk,1.1.1.1,1.2

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Tue Feb 28 23:40:32 UTC 2006


Author: rmeggins

Update of /cvs/dirsec/dsbuild
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9128

Modified Files:
	gar.lib.mk 
Log Message:
use make NOCACHE=1 to bypass caching proxies - useful when using makesum to regenerate the checksums files from pristine sources


Index: gar.lib.mk
===================================================================
RCS file: /cvs/dirsec/dsbuild/gar.lib.mk,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- gar.lib.mk	10 Feb 2006 15:28:52 -0000	1.1.1.1
+++ gar.lib.mk	28 Feb 2006 23:40:24 -0000	1.2
@@ -32,6 +32,9 @@
 
 URLS = $(subst ://,//,$(foreach SITE,$(FILE_SITES) $(MASTER_SITES),$(addprefix $(SITE),$(DISTFILES))) $(foreach SITE,$(FILE_SITES) $(PATCH_SITES) $(MASTER_SITES),$(addprefix $(SITE),$(PATCHFILES))))
 
+ifdef NOCACHE
+	NOCACHEARG = "--header=Cache-Control: no-cache"
+endif
 
 # Download the file if and only if it doesn't have a preexisting
 # checksum file.  Loop through available URLs and stop when you
@@ -52,7 +55,7 @@
 
 # download an http URL
 http//%:
-	@wget -c -nd --passive-ftp -P $(DOWNLOADDIR) http://$*
+	@wget $(NOCACHEARG) -c -nd --passive-ftp -P $(DOWNLOADDIR) http://$*
 
 # download an ftp URL
 ftp//%:




More information about the Fedora-directory-commits mailing list