julia: Create cacert directory manually to ensure correct permissions (#3482)

This commit is contained in:
Erik Schnetter 2017-03-17 17:07:49 -04:00 committed by Adam J. Stewart
parent b0d9088603
commit a2235fed41

View File

@ -150,8 +150,10 @@ def install(self, spec, prefix):
make("install")
# Julia's package manager needs a certificate
cacert_dir = join_path(prefix, "etc", "curl")
mkdirp(cacert_dir)
cacert_file = join_path(cacert_dir, "cacert.pem")
curl = which("curl")
cacert_file = join_path(prefix, "etc", "curl", "cacert.pem")
curl("--create-dirs",
"--output", cacert_file,
"https://curl.haxx.se/ca/cacert.pem")