summaryrefslogtreecommitdiff
path: root/plugins/pip
diff options
context:
space:
mode:
authorFabricio Biazzotto <sliphacker@yahoo.com.br>2019-04-08 17:39:54 -0300
committerMarc Cornellà <marc.cornella@live.com>2019-04-08 22:39:54 +0200
commite83b70f28b974d8f7bf6a1e29392743952329cf2 (patch)
tree7ee9c9ca688eec0d92005b7f82cbb8832380cb7f /plugins/pip
parent0c000af72162a5bd5147e8eedd25e810619f6c6f (diff)
downloadzsh-e83b70f28b974d8f7bf6a1e29392743952329cf2.tar.gz
zsh-e83b70f28b974d8f7bf6a1e29392743952329cf2.tar.bz2
zsh-e83b70f28b974d8f7bf6a1e29392743952329cf2.zip
pip: fix indexes URL (#6986)
Fixes #6981.
Diffstat (limited to 'plugins/pip')
-rw-r--r--plugins/pip/pip.plugin.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/pip/pip.plugin.zsh b/plugins/pip/pip.plugin.zsh
index d7236b02a..5539187e1 100644
--- a/plugins/pip/pip.plugin.zsh
+++ b/plugins/pip/pip.plugin.zsh
@@ -10,7 +10,7 @@
# "zsh-pip-clear-cache".
ZSH_PIP_CACHE_FILE=~/.pip/zsh-cache
-ZSH_PIP_INDEXES=(https://pypi.python.org/simple/)
+ZSH_PIP_INDEXES=(https://pypi.org/simple/)
zsh-pip-clear-cache() {
rm $ZSH_PIP_CACHE_FILE
@@ -31,7 +31,7 @@ zsh-pip-cache-packages() {
tmp_cache=/tmp/zsh_tmp_cache
for index in $ZSH_PIP_INDEXES ; do
# well... I've already got two problems
- curl $index 2>/dev/null | \
+ curl -L $index 2>/dev/null | \
zsh-pip-clean-packages \
>> $tmp_cache
done