Fix install state passing

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2018-10-11 06:28:10 -04:00
parent 765e97b19a
commit 91d8d7e494
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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)