Skip to content

Commit

Permalink
Fix #4881 installation fails when extra index url is given
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Nov 25, 2021
1 parent e69ce68 commit cdde3f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/4881.bugfix.rst
@@ -0,0 +1 @@
Fix a bug of installation fails when extra index url is given.
2 changes: 1 addition & 1 deletion pipenv/core.py
Expand Up @@ -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:")
Expand Down

0 comments on commit cdde3f7

Please sign in to comment.