Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

update Hackage download URL in bootstrap.sh #1655

Merged
merged 1 commit into from

2 participants

@juhp

Downloading was failing with curl which seems not do http redirect by default.

This change simple updates the urls from
Hackage 1's http://hackage.haskell.org/packages/archive/$PKG/$VER/$PKG-$VER.tar.gz
to
Hackage 2's http://hackage.haskell.org/package/$PKG-$VER/$PKG-$VER.tar.gz
which makes curl happy and downloads work again.

@juhp juhp update Hackage download URL in bootstrap.sh
Downloading was failing with curl which seems
not do http redirect by default.

This change simple updates the urls from

Hackage 1's http://hackage.haskell.org/packages/archive/$PKG/$VER/$PKG-$VER.tar.gz to
Hackage 2's http://hackage.haskell.org/package/$PKG-$VER/$PKG-$VER.tar.gz

which makes curl happy and downloads work again.
e74cecb
@23Skidoo 23Skidoo merged commit e2faf26 into haskell:master
@23Skidoo
Collaborator

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 25, 2014
  1. @juhp

    update Hackage download URL in bootstrap.sh

    juhp authored
    Downloading was failing with curl which seems
    not do http redirect by default.
    
    This change simple updates the urls from
    
    Hackage 1's http://hackage.haskell.org/packages/archive/$PKG/$VER/$PKG-$VER.tar.gz to
    Hackage 2's http://hackage.haskell.org/package/$PKG-$VER/$PKG-$VER.tar.gz
    
    which makes curl happy and downloads work again.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 cabal-install/bootstrap.sh
View
4 cabal-install/bootstrap.sh
@@ -62,7 +62,7 @@ TIME_VER="1.4.1" TIME_VER_REGEXP="1\.[1234]\.?" # >= 1.1 && < 1.5
RANDOM_VER="1.0.1.1" RANDOM_VER_REGEXP="1\.0\." # >= 1 && < 1.1
STM_VER="2.4.2"; STM_VER_REGEXP="2\." # == 2.*
-HACKAGE_URL="http://hackage.haskell.org/packages/archive"
+HACKAGE_URL="http://hackage.haskell.org/package"
die () {
echo
@@ -119,7 +119,7 @@ fetch_pkg () {
PKG=$1
VER=$2
- URL=${HACKAGE_URL}/${PKG}/${VER}/${PKG}-${VER}.tar.gz
+ URL=${HACKAGE_URL}/${PKG}-${VER}/${PKG}-${VER}.tar.gz
if which ${CURL} > /dev/null
then
${CURL} -L --fail -C - -O ${URL} || die "Failed to download ${PKG}."
Something went wrong with that request. Please try again.