e83b70f28b974d8f7bf6a1e29392743952329cf2

Author
Fabricio Biazzotto <sliphacker@yahoo.com.br>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

pip: fix indexes URL (#6986)

Fixes #6981. 

Diff

 1diff --git a/plugins/pip/pip.plugin.zsh b/plugins/pip/pip.plugin.zsh
 2index d7236b02afb0f4de39e5f5631c27525e153c08c3..5539187e1adf1100c3ee9bd448e3f9ab03e7ce5c 100644
 3--- a/plugins/pip/pip.plugin.zsh
 4+++ b/plugins/pip/pip.plugin.zsh
 5@@ -10,7 +10,7 @@
 6 # "zsh-pip-clear-cache".
 7 
 8 ZSH_PIP_CACHE_FILE=~/.pip/zsh-cache
 9-ZSH_PIP_INDEXES=(https://pypi.python.org/simple/)
10+ZSH_PIP_INDEXES=(https://pypi.org/simple/)
11 
12 zsh-pip-clear-cache() {
13   rm $ZSH_PIP_CACHE_FILE
14@@ -31,7 +31,7 @@ zsh-pip-cache-packages() {
15       tmp_cache=/tmp/zsh_tmp_cache
16       for index in $ZSH_PIP_INDEXES ; do
17           # well... I've already got two problems
18-          curl $index 2>/dev/null | \
19+          curl -L $index 2>/dev/null | \
20               zsh-pip-clean-packages \
21                >> $tmp_cache
22       done