Bug fix for ca-certificates-mozilla/package.py to enable spack install --source (#32953)

This commit is contained in:
Dom Heinzeller 2022-10-04 04:29:48 -06:00 committed by GitHub
parent abbdf24083
commit 8af1802bd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,5 +121,6 @@ def setup_dependent_package(self, module, dep_spec):
# Install the the pem file as share/cacert.pem # Install the the pem file as share/cacert.pem
def install(self, spec, prefix): def install(self, spec, prefix):
share = join_path(prefix, "share") share = join_path(prefix, "share")
mkdir(share) # https://github.com/spack/spack/issues/32948
mkdirp(share)
install("cacert-{0}.pem".format(spec.version), join_path(share, "cacert.pem")) install("cacert-{0}.pem".format(spec.version), join_path(share, "cacert.pem"))