diff --git a/package_control/downloaders/curl_downloader.py b/package_control/downloaders/curl_downloader.py index e22ba0c6..5040879b 100644 --- a/package_control/downloaders/curl_downloader.py +++ b/package_control/downloaders/curl_downloader.py @@ -4,6 +4,7 @@ from ..ca_certs import get_ca_bundle_path from ..console_write import console_write +from ..sys_path import shortpath from .cli_downloader import CliDownloader from .non_clean_exit_error import NonCleanExitError from .downloader_exception import DownloaderException @@ -100,7 +101,7 @@ def download(self, url, error_message, timeout, tries): secure_url_match = re.match(r'^https://([^/#?]+)', url) if secure_url_match is not None: - bundle_path = get_ca_bundle_path(self.settings) + bundle_path = shortpath(get_ca_bundle_path(self.settings)) command.extend(['--cacert', bundle_path]) debug = self.settings.get('debug') diff --git a/package_control/downloaders/wget_downloader.py b/package_control/downloaders/wget_downloader.py index 6040a252..1d39ad59 100644 --- a/package_control/downloaders/wget_downloader.py +++ b/package_control/downloaders/wget_downloader.py @@ -5,6 +5,7 @@ from ..ca_certs import get_ca_bundle_path from ..console_write import console_write +from ..sys_path import shortpath from .cli_downloader import CliDownloader from .non_http_error import NonHttpError from .non_clean_exit_error import NonCleanExitError @@ -104,7 +105,7 @@ def download(self, url, error_message, timeout, tries): secure_url_match = re.match(r'^https://([^/#?]+)', url) if secure_url_match is not None: - bundle_path = get_ca_bundle_path(self.settings) + bundle_path = shortpath(get_ca_bundle_path(self.settings)) command.append('--ca-certificate=' + bundle_path) command.append('-S')