jdk package: Fix fetching with curl 7.64.0+ (#11108)

Starting with version 7.64.0, curl skips cookies specified with "-H"
(generic custom header specification) when following redirects, which
causes the "accept-license"-cookie for jdk to disappear. The result
is that jdk fails to download. This uses the "-b" option (which is
used specifically for configuring cookies) instead, which is more
permissive.
This commit is contained in:
Oliver Breitwieser 2019-04-19 23:43:45 +02:00 committed by Peter Scheibel
parent e86027d1f8
commit 56c233b0b7

View File

@ -26,8 +26,8 @@ class Jdk(Package):
# http://stackoverflow.com/questions/10268583/how-to-automate-download-and-installation-of-java-jdk-on-linux
curl_options = [
'-j', # junk cookies
'-H', # specify required License Agreement cookie
'Cookie: oraclelicense=accept-securebackup-cookie'
'-b', # specify required License Agreement cookie
'oraclelicense=accept-securebackup-cookie'
]
# To add the latest version, go to the homepage listed above,