mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
@@ -308,7 +308,7 @@ def lock(
|
||||
ensure_project(three=state.three, python=state.python, pypi_mirror=state.pypi_mirror)
|
||||
if state.installstate.requirementstxt:
|
||||
do_init(dev=state.installstate.dev, requirements=state.installstate.requirementstxt,
|
||||
pypi_mirror=state.pypi_mirror)
|
||||
pypi_mirror=state.pypi_mirror, state.installstate.pre)
|
||||
do_lock(
|
||||
clear=state.clear,
|
||||
pre=state.installstate.pre,
|
||||
|
||||
+2
-2
@@ -1346,7 +1346,7 @@ def pip_install(
|
||||
except SourceNotFound:
|
||||
src_name = project.src_name_from_url(index)
|
||||
index_url = parse_url(index)
|
||||
verify_ssl = True if index_url.host not in trusted_hosts else False
|
||||
verify_ssl = index_url.host not in trusted_hosts
|
||||
index_source = {"url": index, "verify_ssl": verify_ssl, "name": src_name}
|
||||
sources = [index_source.copy(),]
|
||||
if extra_indexes:
|
||||
@@ -1358,7 +1358,7 @@ def pip_install(
|
||||
except SourceNotFound:
|
||||
src_name = project.src_name_from_url(idx)
|
||||
src_url = parse_url(idx)
|
||||
verify_ssl = True if src_url.host not in trusted_hosts else False
|
||||
verify_ssl = src_url.host not in trusted_hosts
|
||||
extra_src = {"url": idx, "verify_ssl": verify_ssl, "name": extra_src}
|
||||
if extra_src["url"] != index_source["url"]:
|
||||
sources.append(extra_src)
|
||||
|
||||
Reference in New Issue
Block a user