Commit 82eeb344 authored by Arun Raghavan's avatar Arun Raghavan Committed by Arun Raghavan
Browse files

osx: Fix CPAN module installation in bootstrap

Since the temp file is created before we call shell.download(), the file
would never actually get downloaded because shell.download() aborts by
default if the file exists.
parent 1e91aad4
......@@ -39,7 +39,7 @@ class OSXBootstrapper (BootstrapperBase):
def _install_perl_deps(self):
# Install cpan-minus, a zero-conf CPAN wrapper
cpanm_installer = tempfile.NamedTemporaryFile()
shell.download(self.CPANM_URL, cpanm_installer.name)
shell.download(self.CPANM_URL, cpanm_installer.name, overwrite=True)
shell.call('chmod +x %s' % cpanm_installer.name)
# Install XML::Parser, required for intltool
shell.call("sudo %s XML::Parser" % cpanm_installer.name)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment