diff options
Diffstat (limited to 'lib/spack/spack/url.py')
-rw-r--r-- | lib/spack/spack/url.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/spack/spack/url.py b/lib/spack/spack/url.py index 4969d5f353..aa40524ae8 100644 --- a/lib/spack/spack/url.py +++ b/lib/spack/spack/url.py @@ -31,7 +31,7 @@ from six import StringIO from six.moves.urllib.parse import urlsplit, urlunsplit import llnl.util.tty as tty -from llnl.util.tty.color import colorize +from llnl.util.tty.color import cescape, colorize import spack.error import spack.util.compression as comp @@ -898,6 +898,9 @@ def color_url(path, **kwargs): errors (bool): Append parse errors at end of string. subs (bool): Color substitutions as well as parsed name/version. """ + # Allow URLs containing @ and } + path = cescape(path) + errors = kwargs.get('errors', False) subs = kwargs.get('subs', False) |