mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
fix parameter passing
This commit is contained in:
+1
-1
@@ -803,7 +803,7 @@ def do_install_dependencies(
|
||||
deps_list = list(lockfile.get_requirements(dev=dev, only=dev_only))
|
||||
if emit_requirements:
|
||||
index_args = prepare_pip_source_args(
|
||||
get_source_list(project, pypi_mirror=pypi_mirror, project=project)
|
||||
get_source_list(project, pypi_mirror=pypi_mirror)
|
||||
)
|
||||
index_args = " ".join(index_args).replace(" -", "\n-")
|
||||
deps = [
|
||||
|
||||
+2
-2
@@ -322,7 +322,7 @@ def get_source_list(
|
||||
return sources
|
||||
|
||||
|
||||
def get_indexes_from_requirement(req, project, ndex=None, extra_indexes=None, trusted_hosts=None, pypi_mirror=None):
|
||||
def get_indexes_from_requirement(req, project, index=None, extra_indexes=None, trusted_hosts=None, pypi_mirror=None):
|
||||
# type: (Requirement, Project, Optional[Text], Optional[List[Text]], Optional[List[Text]], Optional[Text]) -> Tuple[TSource, List[TSource], List[Text]]
|
||||
index_sources = [] # type: List[TSource]
|
||||
if not trusted_hosts:
|
||||
@@ -341,7 +341,7 @@ def get_indexes_from_requirement(req, project, ndex=None, extra_indexes=None, tr
|
||||
indexes.extend(project_indexes)
|
||||
if len(indexes) > 1:
|
||||
index, extra_indexes = indexes[0], indexes[1:]
|
||||
index_sources = get_source_list(index=index, extra_indexes=extra_indexes, trusted_hosts=trusted_hosts, pypi_mirror=pypi_mirror, project=project)
|
||||
index_sources = get_source_list(project, index=index, extra_indexes=extra_indexes, trusted_hosts=trusted_hosts, pypi_mirror=pypi_mirror)
|
||||
if len(index_sources) > 1:
|
||||
index_source, extra_index_sources = index_sources[0], index_sources[1:]
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user