Fix python package detection should not list file:// links

This commit is contained in:
allegroai 2021-01-13 14:01:18 +02:00
parent c69f124892
commit b123fb0cdd

View File

@ -386,7 +386,9 @@ def _search_path(path):
# mapping[pkg_name] = ('-e', git_url) # mapping[pkg_name] = ('-e', git_url)
pkg_name, version = '-e {}'.format(git_url), '' pkg_name, version = '-e {}'.format(git_url), ''
elif 'url' in vcs_info: elif 'url' in vcs_info:
pkg_name, version = vcs_info['url'], '' url_link = vcs_info.get('url', '').strip().lower()
if url_link and not url_link.startswith('file://'):
pkg_name, version = vcs_info['url'], ''
except Exception: except Exception:
pass pass