File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 2424import shutil
2525import subprocess
2626import sys
27+ from urllib .parse import unquote
28+ from urllib .parse import urlparse
2729
2830from ansible .parsing .yaml .loader import AnsibleLoader
2931import yaml
@@ -67,7 +69,7 @@ def _get_direct_url_if_editable(dist):
6769 url = direct_url_content ['url' ]
6870 prefix = 'file://'
6971 if url .startswith (prefix ):
70- return url [ len ( prefix ):]
72+ return unquote ( urlparse ( url ). path )
7173
7274 return None
7375
Original file line number Diff line number Diff line change 1+ ---
2+ fixes :
3+ - |
4+ Fixes a issue where the working directory contains symbols such
5+ as @.
6+ The previous behaviour tries to load files with url encoded symbols.
7+ `LP#2129687 <https://bugs.launchpad.net/kayobe/+bug/2129687>`__
You can’t perform that action at this time.
0 commit comments