misc: make urljoin works with git+ssh:// URLs (#44790)

This commit is contained in:
Benjamin Dauvergne 2020-07-03 12:27:31 +02:00
parent cfe87cda7e
commit d5636c45e2
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,11 @@ from eobuilder import settings, VERSION, init
from eobuilder.changelog import changelog_from_git
from eobuilder.cmdline import parse_cmdline, error, cat, touch, call, output, setup_py
# fix urljoin for git+ssh:// URLs
if 'git+ssh' not in urllib.parse.uses_relative:
urllib.parse.uses_relative.append('git+ssh')
def rm_recursive(path):
if os.path.exists(path):
shutil.rmtree(path)