ruby: Install certificate for +openssl only (#11184)

If specifying ~openssl, the post-install step will still try to install
the non-existent certificate, leading to an IOError.
This commit is contained in:
Oliver Breitwieser 2019-04-17 20:03:58 +02:00 committed by Adam J. Stewart
parent c628ca99cf
commit f276b3ffa0

View File

@ -96,6 +96,7 @@ def post_install(self):
http://guides.rubygems.org/ssl-certificate-update/
for details.
"""
if self.spec.satisfies("+openssl"):
rubygems_updated_cert_path = join_path(self.stage.source_path,
'rubygems-updated-ssl-cert',
'GlobalSignRootCA.pem')