Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion kayobe/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
import shutil
import subprocess
import sys
from urllib.parse import unquote
from urllib.parse import urlparse

from ansible.parsing.yaml.loader import AnsibleLoader
import yaml
Expand Down Expand Up @@ -67,7 +69,7 @@ def _get_direct_url_if_editable(dist):
url = direct_url_content['url']
prefix = 'file://'
if url.startswith(prefix):
return url[len(prefix):]
return unquote(urlparse(url).path)

return None

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
fixes:
- |
Fixes a issue where the working directory contains symbols such
as @.
The previous behaviour tries to load files with url encoded symbols.
`LP#2129687 <https://bugs.launchpad.net/kayobe/+bug/2129687>`__