From cdde3f7bcee6bacba89538f73aba9401337be10c Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Thu, 25 Nov 2021 22:34:14 +0800 Subject: [PATCH] Fix #4881 installation fails when extra index url is given --- news/4881.bugfix.rst | 1 + pipenv/core.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 news/4881.bugfix.rst diff --git a/news/4881.bugfix.rst b/news/4881.bugfix.rst new file mode 100644 index 00000000..11f2eeca --- /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 b67439f8..52134bf6 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:")