Commits

Uelsk8s committed 75110bd

update jre to 7u17 fix wget

Comments (0)

Files changed (1)

var/vabs/jre/src/jre.SlackBuild

 for SRC in $(echo $LINK);do
 if [ ! -f $CWD/$(basename $SRC) ]
 then
-	wget --no-check-certificate -c $SRC
+	# download jre with cookie
+	# http://ivan-site.com/2012/05/download-oracle-java-jre-jdk-using-a-script/
+	wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" \
+	--no-check-certificate -O $NAME-$VERSION-linux-$JAVA_ARCH.tar.gz -c $SRC
 fi
 done
 CWD=$(pwd)