mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
fix bug where package_url was being used instead of just url
This commit is contained in:
+1
-1
@@ -224,7 +224,7 @@ def prepare_pip_source_args(sources, pip_args=None):
|
||||
pip_args.extend(["--extra-index-url", url])
|
||||
# Trust the host if it's not verified.
|
||||
if not source.get("verify_ssl", True):
|
||||
url_parts = urllib3_util.parse_url(package_url)
|
||||
url_parts = urllib3_util.parse_url(url)
|
||||
url_port = ":{0}".format(url_parts.port) if url_parts.port else ""
|
||||
pip_args.extend(
|
||||
["--trusted-host", "{0}{1}".format(url_parts.host, url_port)]
|
||||
|
||||
Reference in New Issue
Block a user