diff --git a/news/4881.bugfix.rst b/news/4881.bugfix.rst new file mode 100644 index 0000000000..11f2eecad9 --- /dev/null +++ b/news/4881.bugfix.rst @@ -0,0 +1 @@ +Fix a bug of installation fails when extra index url is given. diff --git a/pipenv/core.py b/pipenv/core.py index b67439f87d..52134bf6d7 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -2108,7 +2108,7 @@ def do_install( ) )) # Add the package to the Pipfile. - indexes = list(filter(None, [index_url, extra_index_url])) + indexes = list(filter(None, [index_url, *extra_index_url])) for index in indexes: index_name = project.add_index_to_pipfile( index, verify_ssl=index.startswith("https:")