mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Encode path name of MSVC URLs when downloading.
This commit is contained in:
parent
962a2a0afa
commit
5d5d028b50
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@ import os
|
||||||
import platform
|
import platform
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import urllib
|
||||||
from subprocess import PIPE
|
from subprocess import PIPE
|
||||||
from zipfile import BadZipfile
|
from zipfile import BadZipfile
|
||||||
|
|
||||||
|
@ -292,7 +293,7 @@ def windows_msvc(context, force=False):
|
||||||
|
|
||||||
def prepare_file(zip_path, full_spec):
|
def prepare_file(zip_path, full_spec):
|
||||||
if not os.path.isfile(zip_path):
|
if not os.path.isfile(zip_path):
|
||||||
zip_url = "{}{}.zip".format(deps_url, full_spec)
|
zip_url = "{}{}.zip".format(deps_url, urllib.quote(full_spec))
|
||||||
download_file(full_spec, zip_url, zip_path)
|
download_file(full_spec, zip_url, zip_path)
|
||||||
|
|
||||||
print("Extracting {}...".format(full_spec), end='')
|
print("Extracting {}...".format(full_spec), end='')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue