You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2015/02/04 20:43:59 UTC

svn commit: r1657390 - /vcl/trunk/vcl-install.sh

Author: jfthomps
Date: Wed Feb  4 19:43:59 2015
New Revision: 1657390

URL: http://svn.apache.org/r1657390
Log:
added lines that remove existing sha1 and gpg sig files; previously, if existing files were there, new ones would have a .<number> added to the end resulting in the existing ones being used for verification instead of the just downloaded ones

Modified:
    vcl/trunk/vcl-install.sh

Modified: vcl/trunk/vcl-install.sh
URL: http://svn.apache.org/viewvc/vcl/trunk/vcl-install.sh?rev=1657390&r1=1657389&r2=1657390&view=diff
==============================================================================
--- vcl/trunk/vcl-install.sh (original)
+++ vcl/trunk/vcl-install.sh Wed Feb  4 19:43:59 2015
@@ -217,13 +217,6 @@ if [[ -f NOTICE && -f LICENSE && -d mana
 	WORKPATH=$(dirname `pwd`)
 fi
 
-# TODO
-#tmp=$(dirname $0)
-#pushd $tmp > /dev/null
-#SCRIPTPATH=$(pwd)
-#popd > /dev/null
-#echo $SCRIPTPATH
-
 # ------------------- checks for existing installation -----------------------
 echo ""
 echo "This script will exit if any existing parts of VCL are found. If they exist, you"
@@ -406,6 +399,7 @@ function download_archive() {
 
 function validate_archive_sha1() {
 	echo "Downloading sha1 file for $VCL_VERSION..."
+	/bin/rm -f $ARCHIVE.sha1
 	wget -q $SIGPATH$ARCHIVE.sha1
 	echo "validating $ARCHIVE"
 	sha1sum -c $ARCHIVE.sha1
@@ -414,6 +408,7 @@ function validate_archive_sha1() {
 
 function validate_archive_gpg() {
 	echo "Downloading GPG file for $VCL_VERSION..."
+	/bin/rm -f $ARCHIVE.asc
 	wget -q $SIGPATH$ARCHIVE.asc
 	echo "Downloading KEYS file for ASF VCL..."
 	wget -q https://svn.apache.org/repos/asf/vcl/KEYS