SPECS: builder - set user agent for wget

glen glen at pld-linux.org
Mon Apr 9 19:46:03 CEST 2007


Author: glen                         Date: Mon Apr  9 17:46:03 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- set user agent for wget

---- Files affected:
SPECS:
   builder (1.499 -> 1.500) 

---- Diffs:

================================================================
Index: SPECS/builder
diff -u SPECS/builder:1.499 SPECS/builder:1.500
--- SPECS/builder:1.499	Mon Mar 19 14:42:02 2007
+++ SPECS/builder	Mon Apr  9 19:45:58 2007
@@ -48,6 +48,9 @@
 ALWAYS_CVSUP=${ALWAYS_CVSUP:-"yes"}
 CVSROOT=""
 
+# user agent when fetching files
+USER_AGENT="PLD/Builder($VERSION)"
+
 # It can be used i.e. in log file naming.
 # See LOGFILE example.
 DATE=`date +%Y-%m-%d_%H-%M-%S`
@@ -153,6 +156,7 @@
 	wget --help 2>&1 | grep -q -- ' --no-check-certificate ' && WGET_OPTS="$WGET_OPTS --no-check-certificate"
 	wget --help 2>&1 | grep -q -- ' --inet ' && WGET_OPTS="$WGET_OPTS --inet"
 	wget --help 2>&1 | grep -q -- ' --retry-connrefused ' && WGET_OPTS="$WGET_OPTS --retry-connrefused"
+	WGET_OPTS="$WGET_OPTS --user-agent=$USER_AGENT"
 
 	GETURI="wget --passive-ftp -c -nd -t$WGET_RETRIES $WGET_OPTS"
 	GETURI2="wget -c -nd -t$WGET_RETRIES $WGET_OPTS"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/builder?r1=1.499&r2=1.500&f=u



More information about the pld-cvs-commit mailing list